Framework CCCS page
This commit is contained in:
parent
09aba964a9
commit
8f812ab935
319 changed files with 24165 additions and 50 deletions
14
layouts/article_archive.erb
Normal file
14
layouts/article_archive.erb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<%= render 'pager', :linkprev => @linkprev, :linknext => @linknext %>
|
||||
<div class="row">
|
||||
<section itemscope itemtype="http://schema.org/Blog">
|
||||
<% (@item[:futureitems] + @item[:pastitems]).each do |item| %>
|
||||
<div class="span8">
|
||||
<%= render 'item_intro', :item => item, :extended => true %>
|
||||
<p>
|
||||
<a itemprop="blogPost" href="<%= item.path() %>">Zum Artikel</a>
|
||||
<hr>
|
||||
</div>
|
||||
<% end %>
|
||||
</section>
|
||||
</div>
|
||||
<%= render 'pager', :linkprev => @linkprev, :linknext => @linknext %>
|
||||
27
layouts/article_body.html
Normal file
27
layouts/article_body.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<div class="row">
|
||||
<div class="span8">
|
||||
<article itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<header>
|
||||
<h1 itemprop="name"><%= item[:title]%>
|
||||
<% if item.attributes.has_key?(:subtitle) then %>
|
||||
<br/><small><%= item[:subtitle] %></small>
|
||||
<% end %></h1>
|
||||
<p>
|
||||
<ul class="unstyled inline">
|
||||
<li><i class="icon-calendar" title="Datum"></i> <time itemprop="dateCreated" datetime="<%= @item[:created_at].strftime("%Y-%m-%d") %>"><%= @item[:created_at].strftime("%d.%m.%Y") %></time></li>
|
||||
<% if @item[:author] %><li><i class="icon-pencil" title="Autor"></i> <%= @item[:author] %></li><% end %>
|
||||
<% if @item[:refers_to] %><li><i class="icon-cogs" title="Zugehöriges Projekt"></i> <a href="<%= @items[sanitize_path(@item[:refers_to])].path() %>"><%= @items[sanitize_path(@item[:refers_to])][:title] %></a></li><% end %>
|
||||
<li><i class="icon-bookmark" title="Permalink"></i> <a itemprop="url" href="<%= item.path() %>">Permalink</a></li>
|
||||
</ul>
|
||||
</header>
|
||||
<hr>
|
||||
<section>
|
||||
<%= yield %>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<div id="sidebar"></div>
|
||||
<script type="text/javascript">$("#sidebar").load("/sidebar/index.html");</script>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1,47 +1,69 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title><%= @item[:title] %></title>
|
||||
<link rel="stylesheet" href="/styles/main.css">
|
||||
<% if @item[:feed] then
|
||||
item[:feed].each do |f| %>
|
||||
<link rel="alternate" type="application/atom+xml" title="<%= f[:title]%>" href="<%= f[:url]%>" />
|
||||
<% end
|
||||
end %>
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<link rel="stylesheet" href="/styles/main.css" />
|
||||
<script src="/js/jquery-1.10.2.min.js" type="text/javascript"></script>
|
||||
<script src="/js/bootstrap-dropdown.js" type="text/javascript"></script>
|
||||
<script src="/js/bootstrap-collapse.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar navbar-static-top">
|
||||
<div class="navbar-inner">
|
||||
<div class="container">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="span1 hidden-phone" style="margin-top: 20px">
|
||||
<a class="brand" href="/"><img src="/img/logo.png" alt="CCCStuttgart"></a>
|
||||
</div>
|
||||
<div class="navbar navbar-static-top span11">
|
||||
<div class="navbar-inner">
|
||||
<div class="nav-collapse collapse">
|
||||
<ul class="nav span11">
|
||||
<li><a<%= menu_active_if("main")%> href="/"><i class="icon-home"></i></a>
|
||||
<li><a<%= menu_active_if("about")%> href="/about/">Wir über uns</a>
|
||||
<li><a<%= menu_active_if("events")%> href="/events/">Veranstaltungen</a>
|
||||
<li><a<%= menu_active_if("activities")%> href="/activities/">Aktivitäten</a>
|
||||
<li><a<%= menu_active_if("projects")%> href="/projects/">Projekte</a>
|
||||
<li><a<%= menu_active_if("members")%> href="/members/">Members</a>
|
||||
<li><a<%= menu_active_if("planet-cccs")%> href="/planet-cccs/">Planet CCCS</a>
|
||||
<li><a<%= menu_active_if("archives")%> href="/archives/articles/">Archiv</a>
|
||||
</ul>
|
||||
<% if (path_section(item,1)=="archives") %>
|
||||
<ul class="nav span11">
|
||||
<li><a<%= menu_active_if("articles",2)%> href="/archives/articles/">Artikel</a>
|
||||
<li><a<%= menu_active_if("twitter",2)%> href="/archives/twitter/">Twitter</a>
|
||||
<li><a<%= menu_active_if("oldsite",2)%> href="/archives/oldsite/">Alte Webseite</a>
|
||||
</ul>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
<a class="brand" href="/"><img src="/img/logo.png" alt="Logo"></a>
|
||||
<div class="nav-collapse collapse">
|
||||
<ul class="nav">
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#">Menü...</a>
|
||||
<li><a href="#">Menü...</a>
|
||||
<li><a href="#">Menü...</a>
|
||||
<li><a href="#">Menü...</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#">Menü...</a>
|
||||
<li><a href="#">Menü...</a>
|
||||
<li><a href="#">Menü...</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<% render("#{@item[:kind]}_body") do %><%= yield %><% end %>
|
||||
<footer>
|
||||
<a href="#">Impressum</a>
|
||||
</footer>
|
||||
<div id="footer">
|
||||
<div id="footerimage">
|
||||
<img alt="Silhouette" src="/img/silhouette.png">
|
||||
</div>
|
||||
<footer>
|
||||
<ul class="horizontal">
|
||||
<li class="icon-twitter-sign"><a href="https://twitter.com/cccs_de/">twitter</a></li>
|
||||
<li class="icon-github"><a href="https://github.com/cccs/">github</a></li>
|
||||
<li class="pull-right"><a href="/imprint">Impressum <img alt="(CC) by-nc-sa" src="/img/cc-by-nc-sa-small.png" /></a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
1
layouts/empty_body.html
Normal file
1
layouts/empty_body.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<%= yield %>
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
<div class="row" id="mainrow">
|
||||
<div class="row">
|
||||
<%= yield %>
|
||||
</div>
|
||||
|
|
|
|||
47
layouts/event_archive.erb
Normal file
47
layouts/event_archive.erb
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<%= render 'pager', :linkprev => @linkprev, :linknext => @linknext %>
|
||||
<% if (@item[:futureitems].size>0 && @item[:pastitems].size>0) %>
|
||||
<div class="row">
|
||||
<div class="span8">
|
||||
<h1><%= @item[:comingtitle] %></h1>
|
||||
</div>
|
||||
<% @item[:futureitems].reverse.each do |item| %>
|
||||
<div class="span8">
|
||||
<article itemscope itemtype="http://schema.org/EducationEvent">
|
||||
<%= render 'event_header', :item => item, :heading => 'h2', :link => true %>
|
||||
</article>
|
||||
<p>
|
||||
<a href="<%= item.path() %>">Zum Artikel</a>
|
||||
<hr>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span8">
|
||||
<h1><%= @item[:pasttitle] %></h1>
|
||||
</div>
|
||||
<% @item[:pastitems].each do |item| %>
|
||||
<div class="span8">
|
||||
<article itemscope itemtype="http://schema.org/EducationEvent">
|
||||
<%= render 'event_header', :item => item, :heading => 'h2', :link => true %>
|
||||
</article>
|
||||
<p>
|
||||
<a href="<%= item.path() %>">Zum Artikel</a>
|
||||
<hr>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="row">
|
||||
<% (@item[:futureitems] + @item[:pastitems]).each do |item| %>
|
||||
<div class="span8">
|
||||
<article itemscope itemtype="http://schema.org/EducationEvent">
|
||||
<%= render 'event_header', :item => item, :heading => 'h1', :link => true %>
|
||||
</article>
|
||||
<p>
|
||||
<a href="<%= item.path() %>">Zum Artikel</a>
|
||||
<hr>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= render 'pager', :linkprev => @linkprev, :linknext => @linknext %>
|
||||
20
layouts/event_body.html
Normal file
20
layouts/event_body.html
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<div class="row">
|
||||
<div class="span8">
|
||||
<div class="row">
|
||||
<div class="span8">
|
||||
<article itemscope itemtype="http://schema.org/EducationEvent">
|
||||
<%= render 'event_header', :item => item, :heading => 'h1', :link => false %>
|
||||
<hr>
|
||||
<section itemprop="description">
|
||||
<%= yield %>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
<%= render 'referred_article_list', :refitem => item, :count => 5 %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<div id="sidebar"></div>
|
||||
<script type="text/javascript">$("#sidebar").load("/sidebar/index.html");</script>
|
||||
</div>
|
||||
</div>
|
||||
74
layouts/event_header.erb
Normal file
74
layouts/event_header.erb
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
<header class="event">
|
||||
<% if heading %>
|
||||
<% if link %>
|
||||
<<%= heading %> itemprop="name"><a itemProp="url" href="<%= item.path() %>"><%= item[:title] %></a></<%= heading %>>
|
||||
<% else %>
|
||||
<<%= heading %> itemprop="name"><%= item[:title] %></<%= heading %>>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<ul class="iconlist">
|
||||
<li class="icon-calendar" title="Datum">
|
||||
<span itemprop="startDate" content="<%= @item[:startdate].strftime("%Y-%m-%dT%H:%M") %>"><%= @item[:startdate].strftime("%d.%m.%Y, %H:%M") %> Uhr</span>
|
||||
<% if !@item[:public] %>(nicht öffentlich)<% end %>
|
||||
</li>
|
||||
<% if !heading %>
|
||||
<li class="icon-comment" title="Thema">
|
||||
<span itemprop="name"><%= item[:title] %></span>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if @item[:speakers] %>
|
||||
<li class="icon-male commaseparated" title="Referent">
|
||||
<ul>
|
||||
<% @item[:speakers].each do |speaker| %>
|
||||
<li itemprop="performer" itemscope itemtype="http://schema.org/Person">
|
||||
<span itemprop="name"><%= speaker[:name] %></span><% if speaker[:affiliation]%> (<%= speaker[:affiliation] %>)<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if @item[:superevent] %>
|
||||
<li class="icon-comments-alt" itemprop="superEvent" itemscope itemtype="http://schema.org/Event" title="Veranstaltung">
|
||||
<% if @item[:superevent][:url] %>
|
||||
<a itemprop="url" href="<%= @item[:superevent][:url] %>"><span itemprop="name"><%= @item[:superevent][:title] %></span></a>
|
||||
<% else %>
|
||||
<span itemprop="name"><%= @item[:superevent][:title] %></span>
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if @item[:location] %>
|
||||
<li class="icon-compass commaseparated" title="Ort">
|
||||
<ul itemprop="location" itemscope itemtype="http://schema.org/Location">
|
||||
<li itemprop="name"><% if item[:location][:url] %><a itemprop="url" href="<%= item[:location][:url] %>"><%= item[:location][:name] %></a><% else %><%= item[:location][:name] %><% end %></li>
|
||||
<% if item[:location][:details] %><li><%= item[:location][:details] %></li><% end %>
|
||||
<% if item[:location][:strasse] || item[:location][:ort] %>
|
||||
<li itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
||||
<ul class="commaseparated">
|
||||
<% if item[:location][:strasse] %><li itemprop="streetAddress"><%= item[:location][:strasse] %></li><% end %>
|
||||
<% if item[:location][:ort] %><li><span itemprop="postalCode"><%= item[:location][:plz] %></span> <span itemProp="addressLocality"><%= item[:location][:ort] %></span></li><% end %>
|
||||
</ul>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if item[:location][:lon] %>
|
||||
<li>
|
||||
<span itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">
|
||||
N<span itemprop="latitude"><%= item[:location][:lat] %></span>
|
||||
E<span itemprop="longitude"><%= item[:location][:lon] %></span>
|
||||
</span>
|
||||
(<a itemprop="map" href="http://www.openstreetmap.org/?mlat=<%= item[:location][:lat] %>&mlon=<%= item[:location][:lon] %>&zoom=18#map=16/<%= item[:location][:lat] %>/<%= item[:location][:lon] %>">Karte</a>)
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if @items["#{@item.identifier}aushang/"] || @items["#{@item.identifier}flyer/"] %>
|
||||
<li class="icon-bullhorn commaseparated" title="Aushang, Flyer, etc.">
|
||||
<ul>
|
||||
<% if @items["#{@item.identifier}aushang/"] %><li><a href="<%= @items["#{@item.identifier}aushang/"].path %>">Aushang (PDF)</a></li><%end%>
|
||||
<% if @items["#{@item.identifier}flyer/"] %><li><a href="<%= @items["#{@item.identifier}flyer/"].path %>">Flyer (PDF)</a></li><%end%>
|
||||
</ul>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</header>
|
||||
|
||||
6
layouts/fullpage_body.html
Normal file
6
layouts/fullpage_body.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<div class="row">
|
||||
<div class="span12">
|
||||
<h1><%= item[:title] %></h1>
|
||||
<%= yield %>
|
||||
</div>
|
||||
</div>
|
||||
24
layouts/item_intro.erb
Normal file
24
layouts/item_intro.erb
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<article>
|
||||
<header><% if !@h then @h='h1' end %>
|
||||
<<%= @h %>><a href="<%= @item.path() %>"><%= @item[:title]%></a>
|
||||
<% if @item.attributes.has_key?(:subtitle) then %>
|
||||
<br/><small><%= @item[:subtitle] %></small>
|
||||
<% end %></<%= @h %>>
|
||||
<%if @item[:kind]=='article' %>
|
||||
<p>
|
||||
<ul class="unstyled inline">
|
||||
<li><i class="icon-calendar"></i> <time itemprop="dateCreated" datetime="<%= @item[:created_at].strftime("%Y-%m-%d") %>"><%= @item[:created_at].strftime("%d.%m.%Y") %></time></li>
|
||||
<% if @item[:author] %><li><i class="icon-pencil"></i> <%= @item[:author] %></li><% end %>
|
||||
<% if @item[:refers_to] %><li><i class="icon-cogs"></i> <a href="<%= @items[sanitize_path(@item[:refers_to])].path() %>"><%= @items[sanitize_path(@item[:refers_to])][:title] %></a></li><% end %>
|
||||
<li><i class="icon-bookmark"></i> <a itemprop="url" href="<%= item.path() %>">Permalink</a></li>
|
||||
</ul>
|
||||
<% end %>
|
||||
</header>
|
||||
<div class="clearfix"></div>
|
||||
<section>
|
||||
<% if @extended then %>
|
||||
<%= article_summary(@item) %>
|
||||
<% end %>
|
||||
</section>
|
||||
</article>
|
||||
|
||||
|
|
@ -1,5 +1,10 @@
|
|||
<div class="row" id="mainrow">
|
||||
<div class="span12">
|
||||
<div class="row">
|
||||
<div class="span8">
|
||||
<h1><%= item[:title] %></h1>
|
||||
<%= yield %>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<div id="sidebar"></div>
|
||||
<script type="text/javascript">$("#sidebar").load("/sidebar/index.html");</script>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
8
layouts/pager.erb
Normal file
8
layouts/pager.erb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<div class="pager">
|
||||
<% if @linkprev %>
|
||||
<a href="<%= @linkprev.link %>" class="pull-left icon-circle-arrow-left"> <%= @linkprev.title %></a>
|
||||
<% end %>
|
||||
<% if @linknext %>
|
||||
<a href="<%= @linknext.link %>" class="pull-right icon-circle-arrow-right"> <%= @linknext.title %></a>
|
||||
<% end %>
|
||||
</div>
|
||||
15
layouts/project_body.html
Normal file
15
layouts/project_body.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<div class="row">
|
||||
<div class="span8">
|
||||
<div class="row">
|
||||
<div class="span8">
|
||||
<h1><%= item[:title] %></h1>
|
||||
<%= yield %>
|
||||
</div>
|
||||
<%= render 'referred_article_list', :refitem => item, :count => 5 %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<div id="sidebar"></div>
|
||||
<script type="text/javascript">$("#sidebar").load("/sidebar/index.html");</script>
|
||||
</div>
|
||||
</div>
|
||||
8
layouts/project_list.erb
Normal file
8
layouts/project_list.erb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<% @projects.each do |prj| %>
|
||||
<div class="span8">
|
||||
<%= render 'item_intro', :item => prj, :h => 'h2', :extended => @extended %>
|
||||
<p>
|
||||
<a href="<%= prj.path() %>">Zur Projektseite</a>
|
||||
<hr>
|
||||
</div>
|
||||
<% end %>
|
||||
9
layouts/referred_article_list.erb
Normal file
9
layouts/referred_article_list.erb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<section itemscope itemtype="http://schema.org/Blog">
|
||||
<% latest_articles_referred_to(@refitem.identifier,@count).each do |item| %>
|
||||
<div class="span8">
|
||||
<%= render 'item_intro', :item => item, :extended => true %>
|
||||
<p>
|
||||
<a itemprop="blogPost" href="<%= item.path() %>">Zum Artikel</a>
|
||||
</div>
|
||||
<% end %>
|
||||
</section>
|
||||
3
layouts/twitter_archive.erb
Normal file
3
layouts/twitter_archive.erb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<%= render 'pager', :linkprev => @linkprev, :linknext => @linknext %>
|
||||
<%= render 'twitter_list', :items => twitter_grouped_by_month[@month] %>
|
||||
<%= render 'pager', :linkprev => @linkprev, :linknext => @linknext %>
|
||||
6
layouts/twitter_list.erb
Normal file
6
layouts/twitter_list.erb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
-----
|
||||
filter: erb
|
||||
-----
|
||||
<ul class="no-bullets"><% @items.each do |item| %>
|
||||
<li><a href="<%= item[:url] %>"><%= item[:date].strftime('%d.%m., %H:%M') %></a>: <%= tweet_to_html(item.raw_content) %></li>
|
||||
<% end %></ul>
|
||||
16
layouts/wikiarchive_body.html
Normal file
16
layouts/wikiarchive_body.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<div class="row">
|
||||
<div class="span8">
|
||||
<h1><%= item[:title] %> <small>(Import aus dem alten Wiki)</small></h1>
|
||||
<p>
|
||||
Diese Seite ist ein Import aus dem alten Wiki des CCCS. Sie dient als
|
||||
Archiv und wird nicht weiter gepflegt oder überarbeitet. Die Informationen
|
||||
sind dementsprechend möglicherweise veraltet.
|
||||
</p>
|
||||
<hr />
|
||||
<%= yield %>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<div id="sidebar"></div>
|
||||
<script type="text/javascript">$("#sidebar").load("/sidebar/index.html");</script>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue