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>
|
||||||
</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">
|
<% @fetprofiles.each_slice(4) do |row| %>
|
||||||
|
<div class="row-fluid">
|
||||||
|
<% row.each do |fetprofile| %>
|
||||||
|
<div class="span3">
|
||||||
|
|
||||||
<span class="pull-left">
|
<%= link_to fetprofile do %>
|
||||||
<%= image_tag fetprofile.picture.portrait.url %>
|
<%= render :partial=>"portrait", :object=>fetprofile %>
|
||||||
</span>
|
<% end %>
|
||||||
|
|
||||||
<div class="media-body">
|
</div>
|
||||||
<h2><%= fetprofile.name %></h2>
|
<% end %>
|
||||||
|
</div>
|
||||||
<p><%= fetprofile.fetmail %></p>
|
|
||||||
<% if false %>
|
|
||||||
<p><%= fetprofile.desc %></p>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<% end %>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
|
|||||||
@@ -19,6 +19,9 @@
|
|||||||
|
|
||||||
|
|
||||||
<%= render 'fetprofiles/tabs' %>
|
<%= render 'fetprofiles/tabs' %>
|
||||||
|
|
||||||
|
<div class="content-wrap content-column">
|
||||||
|
|
||||||
<p id="notice"><%= notice %></p>
|
<p id="notice"><%= notice %></p>
|
||||||
<div style="max-width:70em">
|
<div style="max-width:70em">
|
||||||
<div class="media">
|
<div class="media">
|
||||||
@@ -48,3 +51,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%= render 'layouts/pretty_toolbar' %>
|
<%= render 'layouts/pretty_toolbar' %>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
<%= render 'fetprofiles/tabs' %>
|
<%= render 'fetprofiles/tabs' %>
|
||||||
|
<div class="content-wrap content-column">
|
||||||
|
|
||||||
<p id="notice"><%= notice %></p>
|
<p id="notice"><%= notice %></p>
|
||||||
<div class="content-wrap content-column">
|
<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="container-fluid">
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<h1>
|
<h1>
|
||||||
@@ -33,6 +36,9 @@
|
|||||||
<%= render(m) %>
|
<%= render(m) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -51,5 +57,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%= link_to I18n.t('common.edit'), edit_gremium_path(@gremium) %>
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user