forked from bofh/fetsite
Merge branch 'master' of https://github.com/fetsite/fetsite
Conflicts: Gemfile.lock
This commit is contained in:
@@ -77,8 +77,8 @@ logger.debug auth.to_s
|
||||
def text
|
||||
if self.fetprofile.nil?
|
||||
self.email
|
||||
else
|
||||
self.fetprofile.name
|
||||
end
|
||||
else
|
||||
self.fetprofile.name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
<%= link_to ff_icon("icon-pencil")+" edit", edit_beispiel_path(beispiel) if can? :edit, beispiel%>
|
||||
<%= link_to ff_icon("icon-remove")+" delete", beispiel_path(beispiel), :method=>:delete, :data=>{:confirm=>I18n.t('beispiel.sure')} if can? :delete, beispiel %>
|
||||
<%= link_to "Refres1h", beispiel_path(beispiel,show_comments: true), remote: true %></br>
|
||||
<% link_to "Refresh", beispiel_path(beispiel,show_comments: true), remote: true %></br>
|
||||
</span>
|
||||
</div>
|
||||
<div class="span4">
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
<h2>Beispiele</h2>
|
||||
<%= link_to t("beispiel.zip") , beispiel_sammlung_lva_path(@lva), class: :linkbox %>
|
||||
<% @lva.beispiele.each do |b| %>
|
||||
<% @lva.beispiele.order(:datum).each do |b| %>
|
||||
<%= render b%>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -1,12 +1,18 @@
|
||||
<%= content_for :header do %>
|
||||
<title>Fetsite - <%= @neuigkeit.title %> (<%= @neuigkeit.rubrik.name %>)</title>
|
||||
<% set_meta_tags :author => fetprofile_path(@neuigkeit.author.fetprofile) %>
|
||||
<% set_meta_tags :author => fetprofile_path(@neuigkeit.author.fetprofile) unless @neuigkeit.author.fetprofile.nil? %>
|
||||
<% set_meta_tags :og => {
|
||||
:image => @neuigkeit.picture.url.to_s,
|
||||
:title => @neuigkeit.title.to_s + " (" + @neuigkeit.rubrik.name.to_s + ")",
|
||||
:type => "article"
|
||||
:type => "article",
|
||||
:description =>@neuigkeit.text_first_words,
|
||||
:article=> {
|
||||
:author=>@neuigkeit.author.text
|
||||
}
|
||||
}
|
||||
%>
|
||||
<% set_meta_tags :og=>{:article=> {:published_time=>I18n.l(@neuigkeit.try(:datum).try(:to_date)) }} unless @neuigkeit.try(:datum).try(:to_date).nil? %>
|
||||
|
||||
<%= display_meta_tags %>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%= link_to studium_path(studium, {:ansicht=>'semesteransicht'}) ,{:class=>"linkbox"} do %>
|
||||
<%= link_to studium_path(studium, {:ansicht=>'modulgruppenansicht'}) ,{:class=>"linkbox"} do %>
|
||||
<div class="media">
|
||||
<div class="pull-left">
|
||||
<%= image_tag studium.picture.big_thumb.url %>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<li>
|
||||
<%= link_to "FAQS", faqs_themengruppen_path,class: :btn ,class: :linkbox %>
|
||||
</li>
|
||||
<li><%= link_to "Beispielsammlung", studium_path(Studium.first) ,class: :btn ,class: :linkbox %></li>
|
||||
<li><%= link_to "Beispielsammlung", studium_path(Studium.first, {:ansicht=>'semesteransicht'}) ,class: :btn ,class: :linkbox %></li>
|
||||
</ul>
|
||||
<div class="alert">
|
||||
<h2>Beta Test</h2>
|
||||
|
||||
Reference in New Issue
Block a user