Conflicts:
	app/views/neuigkeiten/show.html.erb
This commit is contained in:
2014-11-08 11:08:43 +01:00
12 changed files with 73 additions and 27 deletions

View File

@@ -1,3 +1,12 @@
<%= content_for :header do %>
<title><%= "Fetsite - "+I18n.t('home.mitarbeiter') %></title>
<% set_meta_tags :og => {
:title => "Fetsite - "+I18n.t('home.mitarbeiter'),
:url=> fetprofiles_path(:theme=>nil)
}
%>
<%= display_meta_tags %>
<% end %>
<%= render 'fetprofiles/tabs' %>
<div class="content-wrap content-column">

View File

@@ -1,11 +1,9 @@
<div class="container-fluid">
<div class="row-fluid">
<% if params[:info].true? %>
<%= raw(@studium.desc) %>
<% else %>
<%= @studium.desc_first_words %> <%= link_to I18n.t('studium.info'), studium_path(@studium, :ansicht=>params[:ansicht], :info=>true) %>
<% end %>
<% @studienphasen.each do |sp| %>

View File

@@ -1,10 +1,6 @@
<% if params[:info].true? %>
<%= raw(@studium.desc) %>
<% else %>
<%= @studium.desc_first_words %> <%= link_to I18n.t('studium.info'), studium_path(@studium, :ansicht=>params[:ansicht], :info=>true) %>
<% end %>
<div class="container-fluid">
<% @studium.semester.each_slice(2) do |row| %>
<div class="row-fluid">

View File

@@ -1,3 +1,15 @@
<%= content_for :header do %>
<title><%= "Fetsite - "+I18n.t('home.studien') %></title>
<% set_meta_tags :og => {
:title => "Fetsite - "+I18n.t('home.studien'),
:url=> studien_path(:theme=>nil)
}
%>
<%= display_meta_tags %>
<% end %>
<div class="container-fluid">
<%= render 'studien/tabs' %>
<div class="row-fluid">

View File

@@ -7,7 +7,13 @@
<p id="notice"><%= notice %></p>
<h1><%= @studium.typ %> <%= @studium.name %> (<%= @studium.zahl %>)</h1>
<div>
<p>
<%= render 'layouts/pretty_toolbar' %>
<%= render :partial=>'layouts/pretty_toolbar', :object=>@toolbar_modulgruppen %>
<div class="pull-right">
<%= link_to I18n.t("studien.ansicht.semester"), studium_path(@studium, :ansicht=>"semesteransicht"), :class=>"btn" unless params[:ansicht]=='semesteransicht' %>
<%= link_to I18n.t("studien.ansicht.modulgruppe"), studium_path(@studium, :ansicht=>"modulgruppenansicht"), :class=>"btn" unless params[:ansicht]=='modulgruppenansicht' %>
@@ -29,7 +35,4 @@
<% end %>
<% end %> <% end %>
<%= render :partial=>'layouts/pretty_toolbar', :object=>@toolbar_modulgruppen %>
<br>
<%= render 'layouts/pretty_toolbar' %>
</div>

View File

@@ -1,27 +1,32 @@
<%= link_to themengruppe,{:class=>'linkbox color-1-dark'} do %>
<div class="contentbox color-1-dark">
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class="media">
<%= link_to themengruppe do %>
<span class="pull-left">
<% if themengruppe.icon.nil? or themengruppe.icon.empty? %>
<%= image_tag themengruppe.picture.thumb.url,{:class=>"img-rounded"} %>
<% end %>
</span>
<div class="media-body">
<div class="media-body">
<h3>
<% unless themengruppe.icon.nil? or themengruppe.icon.empty? %> <i class="<%= themengruppe.icon %>" style="font-size:1.5em;margin:0"></i>
<% end %>
<%= themengruppe.title%> </h3>
</div>
<% end %>
</div>
</div>
</div>
<div class="row-fluid">
<div class="span6">
<%= link_to themengruppe do %>
<p>
<%= if themengruppe.text.split.size > Themengruppe::WORD_COUNT
@@ -30,6 +35,7 @@
themengruppe.text
end%>
</p>
<% end %>
</div>
<div class="span6">
@@ -38,7 +44,8 @@
<ul>
<% themengruppe.themen.where(:hidelink=>false).where(:isdraft=>false).each do |t| %>
<li>
<%= render t %>
<%= link_to t do %>
<%= render t %> <% end %>
</li>
<% end %>
</ul>
@@ -48,4 +55,5 @@
</div>
</div>
<% end %>
</div>

View File

@@ -1,3 +1,14 @@
<%= content_for :header do %>
<title><%= "Fetsite - "+I18n.t('home.info') %></title>
<% set_meta_tags :og => {
:title => "Fetsite - "+I18n.t('home.info'),
:url=> themengruppen_path(:theme=>nil)
}
%>
<%= display_meta_tags %>
<% end %>
<div class="content-wrap content-column">
<%= render :partial=>'layouts/pretty_toolbar' %>
<ul class="linklist">