fetprofile redesign
This commit is contained in:
19
app/views/fetprofiles/_landscape.html.erb
Normal file
19
app/views/fetprofiles/_landscape.html.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
<div class="media">
|
||||
|
||||
<span class="pull-left">
|
||||
<%= image_tag landscape.picture.portrait.url %>
|
||||
</span>
|
||||
|
||||
<div class="media-body">
|
||||
<h2><%= landscape.name %></h2>
|
||||
|
||||
<p><%= landscape.fetmail %></p>
|
||||
<% if false %>
|
||||
<p><%= landscape.desc %></p>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
9
app/views/fetprofiles/_portrait.html.erb
Normal file
9
app/views/fetprofiles/_portrait.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<div style="margin-left:auto; margin-right:auto;text-align:center"><%= image_tag portrait.try(:picture).try(:portrait) %>
|
||||
<br> <span>
|
||||
<% if portrait.nil?%>
|
||||
PROFIL fehlt
|
||||
<% else %>
|
||||
<%= portrait.name %>
|
||||
<% end %>
|
||||
</span>
|
||||
</div>
|
||||
@@ -15,36 +15,24 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="unstyled fetprofile_list linkbox-list" style="width:100%">
|
||||
<% @fetprofiles.each do |fetprofile| %>
|
||||
|
||||
<li>
|
||||
<%= link_to fetprofile, {class: :linkbox} do %>
|
||||
|
||||
<div class="media">
|
||||
|
||||
<span class="pull-left">
|
||||
<%= image_tag fetprofile.picture.portrait.url %>
|
||||
</span>
|
||||
|
||||
<div class="media-body">
|
||||
<h2><%= fetprofile.name %></h2>
|
||||
|
||||
<p><%= fetprofile.fetmail %></p>
|
||||
<% if false %>
|
||||
<p><%= fetprofile.desc %></p>
|
||||
<% end %>
|
||||
<% @fetprofiles.each_slice(4) do |row| %>
|
||||
<div class="row-fluid">
|
||||
<% row.each do |fetprofile| %>
|
||||
<div class="span3">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<%= link_to fetprofile do %>
|
||||
<%= render :partial=>"portrait", :object=>fetprofile %>
|
||||
<% end %>
|
||||
</li>
|
||||
|
||||
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<div class="row-fluid">
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
|
||||
|
||||
<%= render 'fetprofiles/tabs' %>
|
||||
|
||||
<div class="content-wrap content-column">
|
||||
|
||||
<p id="notice"><%= notice %></p>
|
||||
<div style="max-width:70em">
|
||||
<div class="media">
|
||||
@@ -48,3 +51,4 @@
|
||||
</div>
|
||||
</div>
|
||||
<%= render 'layouts/pretty_toolbar' %>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<%= render 'fetprofiles/tabs' %>
|
||||
<div class="content-wrap content-column">
|
||||
|
||||
<p id="notice"><%= notice %></p>
|
||||
<div class="content-wrap content-column">
|
||||
<%= link_to I18n.t('common.edit'), edit_gremium_path(@gremium) if can? :edit, @gremium%>
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<h1>
|
||||
@@ -33,6 +36,9 @@
|
||||
<%= render(m) %>
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -51,5 +57,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%= link_to I18n.t('common.edit'), edit_gremium_path(@gremium) %>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user