If display width forced header (Rubrik / User+Date) to display in two lines whole content of Neuigkeit was squeezed to the width of the whitespace left to the lower line
95 lines
3.2 KiB
Plaintext
Executable File
95 lines
3.2 KiB
Plaintext
Executable File
<%= content_for :header do %>
|
|
<title>Fetsite - <%= @neuigkeit.title %> (<%= @neuigkeit.rubrik.name %>)</title>
|
|
<% set_meta_tags :author => fetprofile_path(@neuigkeit.author.fetprofile) unless @neuigkeit.author.fetprofile.nil? %>
|
|
<% unless @neuigkeit.picture.url.nil?
|
|
picture_url=URI(root_url)
|
|
picture_url.path=@neuigkeit.picture.url
|
|
end
|
|
%>
|
|
<% set_meta_tags :og => {
|
|
:image => picture_url.to_s,
|
|
:title => @neuigkeit.title.to_s + " (" + @neuigkeit.rubrik.name.to_s + ")",
|
|
:type => "article",
|
|
:description =>@neuigkeit.text_first_words,
|
|
:url=>neuigkeit_url(:theme=>nil)
|
|
}
|
|
%>
|
|
<% 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 %>
|
|
|
|
<%= render 'rubriken/tabs' %>
|
|
<div class="content-column content-wrap">
|
|
<p id="notice"><%= notice %></p>
|
|
<div class="contentbox">
|
|
<div class="row-fluid">
|
|
<span>
|
|
<%= ff_icon(@neuigkeit.rubrik.icon) unless @neuigkeit.rubrik.icon.nil? or @neuigkeit.rubrik.icon.empty? %> <%= @neuigkeit.rubrik.name %>
|
|
</span>
|
|
<span class="pull-right">
|
|
<%= @neuigkeit.author.email.to_s unless @neuigkeit.try(:author).try(:email).to_s %>
|
|
<%= @neuigkeit.author.text+ " "+ I18n.t("neuigkeit.am")+" " + I18n.l(@neuigkeit.try(:datum).try(:to_date)) unless @neuigkeit.try(:datum).try(:to_date).nil? %>
|
|
</span>
|
|
</div>
|
|
<div class="media">
|
|
<% unless @neuigkeit.picture.big_thumb.to_s.empty? %>
|
|
<div class="pull-left" href="#">
|
|
<p><br><%= link_to image_tag(@neuigkeit.picture.big_thumb.url),@neuigkeit.picture.try(:url) %>
|
|
</p>
|
|
</div>
|
|
<% end %>
|
|
<div class="media-body">
|
|
<h1>
|
|
<%= @neuigkeit.title%>
|
|
</h1>
|
|
<%= raw(@neuigkeit.text) %>
|
|
<p></p>
|
|
</div>
|
|
</div>
|
|
<div id="calentries">
|
|
<% @calentries1.each do |ce|%>
|
|
<%= render ce unless ce.nil? %>
|
|
<% end %>
|
|
</div>
|
|
<% unless @neuigkeit.meeting.nil? %>
|
|
<%= render @neuigkeit.meeting %>
|
|
<% end%>
|
|
<div id="calentry_new" ><%= link_to "new Calentry", new_calentry_path(:object_id=>@neuigkeit.id, :object_type=>"Neuigkeit"), :remote=>true if can? :edit, @neuigkeit %></div>
|
|
<%= render 'layouts/pretty_toolbar', :object=> @toolbar_elements %>
|
|
</div>
|
|
<%= render partial: 'nlink_list_whole', :object=>@neuigkeit.nlinks %>
|
|
<% if can? :find_link , @neuigkeit %>
|
|
<a id="findlink-open" href="#"><%= fa_icon("link")%> Neue Verknüpfungen </a>
|
|
<% end %>
|
|
</div>
|
|
<style>
|
|
|
|
</style>
|
|
<div id="findlink-body"class="ui-dialog" style="">
|
|
<% if can? :find_link, @neuigkeit %>
|
|
Nach Element suchen:
|
|
<%= semantic_form_for :find_link, :url=>find_link_rubrik_neuigkeit_path(@rubrik,@neuigkeit), :html=>{:id=>"search_form", :method=>'get'} , :remote=> true do |f| %>
|
|
<%= f.input :query, :input_html => { :name => 'query' },:label=>false %>
|
|
<% end %>
|
|
<%= render partial: 'nlink_list_search_whole', object: @nlink_search %>
|
|
|
|
<% end %>
|
|
</div>
|
|
<script>
|
|
$(function(){
|
|
dialog = $( "#findlink-body" ).dialog({
|
|
autoOpen: false,
|
|
width: 350,
|
|
modal: true,
|
|
title: "Neue Verknüpfung hinzufügen",
|
|
buttons: {
|
|
"Fertig": function() {
|
|
dialog.dialog( "close" );
|
|
}
|
|
}
|
|
});
|
|
$("#findlink-open").on("click",function(){dialog.dialog("open")})
|
|
});
|
|
</script>
|