Merge branch 'master' of https://github.com/fetsite/fetsite
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<ul class="nav nav-tabs">
|
||||
<li <%= (request.fullpath == fetprofiles_path(filter: "active")|| request.fullpath == fetprofiles_path) ? 'class="active"'.html_safe : ''%> >
|
||||
<%= link_to "Aktive Mitglieder" , fetprofiles_path( filter: "active") %> </li>
|
||||
|
||||
<li><%= link_to "Alle Gremien und Gruppen", gremien_path %></li>
|
||||
<% for g in @gremientabs %>
|
||||
<li <%= (!@gremium.nil? && g == @gremium) ? 'class="active"'.html_safe : '' %> title="<%= g.name %>">
|
||||
<%= link_to g.name, g %>
|
||||
|
||||
@@ -5,19 +5,21 @@
|
||||
<%= I18n.t 'fetprofiles.active' if params[:filter].nil? || params[:filter]== "active"
|
||||
%>
|
||||
</h1>
|
||||
<ul class="unstyled">
|
||||
<ul class="unstyled fetprofile_list">
|
||||
<% @fetprofiles.each do |fetprofile| %>
|
||||
<li>
|
||||
<%= link_to fetprofile do %>
|
||||
<div class="media">
|
||||
<span class="pull-left">
|
||||
<%= image_tag fetprofile.picture.portrait.url %>
|
||||
</span>
|
||||
<div class="">
|
||||
<div class="media-body">
|
||||
|
||||
<h2><%= fetprofile.name %></h2>
|
||||
<p><%= fetprofile.fetmail %></p>
|
||||
<p><%= fetprofile.desc %></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</li>
|
||||
|
||||
13
app/views/gremien/index.html.erb
Normal file
13
app/views/gremien/index.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<%= render 'fetprofiles/tabs' %>
|
||||
<h1>Alle Gremien</h1>
|
||||
|
||||
<ul class="unstyled fetprofile_list">
|
||||
<% @gremien.each do |g| %>
|
||||
<li>
|
||||
<%= link_to g do %>
|
||||
<h2><%= g.name %></h2>
|
||||
<p><%= g.desc %></p>
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
@@ -1,6 +1,14 @@
|
||||
<div class="studium">
|
||||
<h2><%= link_to studium.name + " " + studium.zahl.to_s, studium_path(studium, :ansicht=>'semesteransicht')%></h2> <p><b><%= studium.typ%> </b></p>
|
||||
<%= link_to studium_path(studium, :ansicht=>'semesteransicht') ,{:class=>"studium"} do %>
|
||||
|
||||
<h2>
|
||||
<%= studium.name + " " + studium.zahl.to_s %>
|
||||
</h2>
|
||||
<p>
|
||||
<b><%= studium.typ%> </b>
|
||||
</p>
|
||||
<p><b><%=I18n.t("studien.desc")%>:</b><br>
|
||||
<%= !(studium.desc.to_s == "") ? studium.desc.html_safe : I18n.t("keine.beschreibung")%></p>
|
||||
<%= !(studium.desc.to_s == "") ? studium.desc.html_safe : I18n.t("keine.beschreibung")%>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user