links überarbeitet

This commit is contained in:
Andreas Stephanides
2013-08-27 20:43:16 +02:00
parent 58a5802dac
commit a38eec97a5
5 changed files with 69 additions and 44 deletions

View File

@@ -13,6 +13,7 @@
*= require jquery.fileupload-ui *= require jquery.fileupload-ui
* require 'bootstrap' * require 'bootstrap'
*/ */
$linkColor: #03006E; $linkColor: #03006E;
@import 'bootstrap'; @import 'bootstrap';

View File

@@ -17,16 +17,17 @@
</div> </div>
<% @fetprofiles.each do |fetprofile| %> <% @fetprofiles.each do |fetprofile| %>
<div class="row-fluid"> <div class="row-fluid">
<%= link_to fetprofile do %>
<div class="span3"> <div class="span3">
<%= image_tag fetprofile.picture.portrait.url %> <%= image_tag fetprofile.picture.portrait.url %>
</div> </div>
<div class="span9"> <div class="span9">
<h2><%= link_to fetprofile.name, fetprofile %></h2> <h2><%= fetprofile.name %></h2>
<p><%= fetprofile.fetmail %></p> <p><%= fetprofile.fetmail %></p>
<p><%= fetprofile.desc %></p> <p><%= fetprofile.desc %></p>
<p><%= fetprofile.active %> </p>
</div> </div> <% end %>
</div> </div>
<% end %> <% end %>
<div class="row-fluid"> <div class="row-fluid">

View File

@@ -1,26 +1,28 @@
<h1>Listing galleries</h1> <h1>Listing galleries</h1>
<table>
<tr>
<th>Name</th>
<th>Desc</th>
<th>Datum</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @galleries.each do |gallery| %> <%= %>
<tr> <div class="container-fluid">
<td><%= gallery.name %></td> <div class="row-fluid">
<td><%= gallery.desc %></td> <div class="span12">
<td><%= gallery.datum %></td> <% @galleries.each do |gallery| %>
<td><%= link_to 'Show', gallery %></td> <%= link_to gallery do %>
<td><%= link_to 'Edit', edit_gallery_path(gallery) %></td> <div class="media">
<td><%= link_to 'Destroy', gallery, method: :delete, data: { confirm: 'Are you sure?' } %></td> <div class="pull-left" href="#">
</tr> <%= image_tag gallery.fotos.first.datei.big_thumb.url %>
<% end %> </div>
</table> <div class="media-body">
<h1><%= gallery.datum %> - <%= gallery.name %></h1>
<p><%= gallery.desc %>
</p>
</div>
</div>
<% end %>
<%= link_to 'Edit', edit_gallery_path(gallery) %>
<% end %>
</div>
</div>
</div
<br /> <br />

View File

@@ -1,20 +1,41 @@
<p id="notice"><%= notice %></p> <div class="container-fluid">
<%= render 'fetprofiles/tabs' %> <div class="row-fluid">
<h1> <div class="span12">
<%= render 'fetprofiles/tabs' %>
<p id="notice"><%= notice %></p>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<h1>
<%= @gremium.name %> <%= @gremium.name %>
</h1> </h1>
<p> <% Gremium::TYPEN[@gremium.typ.to_i].to_s %>
<%= @gremium.desc %> <p>
</p> <%= @gremium.desc %>
</p>
</div>
</div>
<% @gremium.memberships.order(:typ).active.each do |m| %>
<% @gremium.memberships.order(:typ).active.each_slice(4) do |r| %>
<div class="row-fluid"><% r.each do |m| %>
<%= link_to m.fetprofile do %>
<div class="span3" style="vertical-align:middle; text-align:center">
<%= image_tag m.fetprofile.picture.portrait %> <%= image_tag m.fetprofile.picture.portrait %>
<%= m.fetprofile.name + " ist" + render(m) %> <p>
<% end %> <%= m.fetprofile.name %> <br><%= render(m) %>
<p> </p>
<%= Gremium::TYPEN[@gremium.typ.to_i].to_s %> </div>
</p> <% end %>
<% end %>
</div>
<% end %>
<%= link_to 'Edit', edit_gremium_path(@gremium) %> | <%= link_to 'Edit', edit_gremium_path(@gremium) %> |
</div>
</div>
</div>

View File

@@ -1,15 +1,15 @@
<%= link_to neuigkeit do %>
<div class="media"> <div class="media">
<div class="pull-left" href="#"> <div class="pull-left" href="#">
<p><br><%= image_tag neuigkeit.picture.thumb.url unless neuigkeit.picture.url.nil? %></p> <p><br><%= image_tag neuigkeit.picture.thumb.url unless neuigkeit.picture.url.nil? %></p>
</div> </div>
<div class="media-body"><div><small><%= neuigkeit.rubrik.name %></small> <div class="media-body"><div><small><%= neuigkeit.rubrik.name %></small>
<small class="pull-right"><%= "am "+ I18n.l(neuigkeit.try(:datum).try(:to_date)) unless neuigkeit.try(:datum).try(:to_date).nil? %></small> </div> <small class="pull-right"><%= "am "+ I18n.l(neuigkeit.try(:datum).try(:to_date)) unless neuigkeit.try(:datum).try(:to_date).nil? %></small> </div>
<h1><%= link_to neuigkeit.title,neuigkeit_path(neuigkeit) %></h1> <h1><%= neuigkeit.title%></h1>
<%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%> <%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%>
<%= link_to "more" , neuigkeit_path(neuigkeit) %>
<p></p> <p></p>
</div> </div>
</div> </div>
<% end %>