link Profile und Gremien an neuigkeit

This commit is contained in:
Andreas Stephanides
2014-04-23 17:15:59 +02:00
parent 63f3b09a5d
commit 73a2627cd3
8 changed files with 30 additions and 5 deletions

View File

@@ -1 +1,10 @@
<h2><%= nlink.title %></h2>
<div class="media">
<span class="pull-left">
<%= image_tag nlink.picture.thumb.url %>
</span>
<div class="media-body">
<h2><%= nlink.title %></h2>
</div>
</div>

View File

@@ -0,0 +1,2 @@
<h2><%=fa_icon("users 2x")+ nlink.name %></h2>
<p><%= raw(nlink.desc) %></p>

View File

@@ -38,6 +38,15 @@
<% end %>
</div>
<% end %>
<div class="row-fluid">
<div class="span12">
<ul class="unstyled">
<% @gremium.nlinks.each do |l| %>
<li><%= render l.neuigkeit %></li>
<% end %>
</ul>
</div>
</div>
</div>
</div>
<%= link_to I18n.t('common.edit'), edit_gremium_path(@gremium) %>

View File

@@ -2,7 +2,7 @@
<% neuigkeiten.each do |n| %>
<% r = n.rubrik %>
<tr>
<td><%= r.public%></td>
<td><%= fa_icon "globe" if r.public%></td>
<td><%= r.name %></td>
<td>
<%= n.title %>

View File

@@ -1,2 +1,2 @@
<h2><%= nlink.title %></h2>
<h2><%= fa_icon("info-circle 2x")+" "+ nlink.title %></h2>
<p><%= raw(nlink.text_first_words) %></p>