forked from bofh/fetsite
document styling print version
This commit is contained in:
@@ -5,5 +5,4 @@
|
|||||||
<%= link_to document.name, document %>
|
<%= link_to document.name, document %>
|
||||||
|
|
||||||
<%= link_to "edit", edit_document_path(document),:remote=>true if can? :edit, document %>
|
<%= link_to "edit", edit_document_path(document),:remote=>true if can? :edit, document %>
|
||||||
<%= link_to 'Delete', document, method: :delete, data: { confirm: 'Are you sure?' } , remote: true if can? :delete, document %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
|
<div class="hidden-print">
|
||||||
<li><%= link_to "Back to parent" , @document.parent %></li>
|
<li><%= link_to "Back to parent" , @document.parent %></li>
|
||||||
<li><%= link_to ff_icon("icon-pencil") + "Edit", write_document_path(@document) %></li>
|
<li><%= link_to ff_icon("icon-pencil") + "Edit", write_document_path(@document) %></li>
|
||||||
<li><%= link_to ff_icon("icon-refresh")+"Refresh from Etherpad", read_from_etherpad_document_path(@document) if @document.is_etherpad? %></li>
|
<li><%= link_to ff_icon("icon-refresh")+"Refresh from Etherpad", read_from_etherpad_document_path(@document) if @document.is_etherpad? %></li>
|
||||||
<li><%= link_to "Copy Document to Etherpad", dump_to_etherpad_document_path(@document) , confirm: "Sicher? Löscht alle Änderungen im Etherpad"%></li>
|
<li><%= link_to "Copy Document to Etherpad", dump_to_etherpad_document_path(@document) , confirm: "Sicher? Löscht alle Änderungen im Etherpad"%></li>
|
||||||
|
<li> <%= link_to 'Delete', @document, method: :delete, data: { confirm: 'Are you sure?' } , remote: true if can? :delete, @document %>
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
<h2><%= @document.name %></h2>
|
<h2><%= @document.name %></h2>
|
||||||
<div id="">
|
<div id="">
|
||||||
<%= raw(@document.text) %>
|
<%= raw(@document.text) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if can?(:edit, @document) %>
|
<% if can?(:edit, @document) %>
|
||||||
<ul class='breadcrumb'>
|
<ul class='breadcrumb hidden-print'>
|
||||||
<% @document.versions.each do |v| %>
|
<% @document.versions.each do |v| %>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to User.find(v.whodunnit).name+": "+ v.event + " (" + I18n.l(v.created_at)+ ") ", write_document_path(@document,:versionid=>v.id) %>
|
<%= link_to User.find(v.whodunnit).name+": "+ v.event + " (" + I18n.l(v.created_at)+ ") ", write_document_path(@document,:versionid=>v.id) %>
|
||||||
|
|||||||
@@ -25,15 +25,20 @@
|
|||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span10 offset1 header_span">
|
<div class="span10 offset1 header_span">
|
||||||
<div class="header_wrap">
|
<div class="header_wrap">
|
||||||
<div class="header">
|
<div class="header hidden-print">
|
||||||
|
|
||||||
<%= link_to home_index_path do %>
|
<%= link_to home_index_path do %>
|
||||||
<!-- <span class="feticon-fet_logo fa-4x color-1"> </span>-->
|
<!-- <span class="feticon-fet_logo fa-4x color-1"> </span>-->
|
||||||
<%= image_tag('/logo2014_64.png',{:style=>"float:left;height:50px",:height=>"50"}) %>
|
<%= image_tag('/logo2014_64.png',{:style=>"float:left;height:50px",:height=>"50"}) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="header visible-print">
|
||||||
<div id="menudiv" style="margin-top:12px">
|
<%= image_tag('/logo2014_64.png',{:style=>"float:left;height:50px",:height=>"50"}) %>
|
||||||
|
</div>
|
||||||
|
<div class="visible-print">
|
||||||
|
Fachschaft Elektrotechnik
|
||||||
|
<hr/>
|
||||||
|
</div>
|
||||||
|
<div id="menudiv" style="margin-top:12px" class="hidden-print">
|
||||||
<%= render :template => 'layouts/menu' %>
|
<%= render :template => 'layouts/menu' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,24 @@
|
|||||||
<a name="thema_<%=small.id%>" href="#<%=small.id%>">
|
<a name="thema_<%=small.id%>" href="#<%=small.id%>">
|
||||||
<div itemscope itemtype="http://schema.org/Article">
|
<div itemscope itemtype="http://schema.org/Article">
|
||||||
<meta itemprop="sameAs" content="<%= thema_url(small, {theme:nil, locale:nil})%>"/>
|
<meta itemprop="sameAs" content="<%= thema_url(small, {theme:nil, locale:nil})%>"/>
|
||||||
<h2><span itemprop="name"><%= link_to small.title,small %></span> <%= link_to fa_icon("pencil"), verwalten_thema_path(small) if can? :edit, small %> </h2>
|
<h2><span itemprop="name"><%= link_to small.title,small %></span>
|
||||||
|
<% if can?(:edit,small) %>
|
||||||
|
<span>
|
||||||
|
<div class="navbar-btn nav" style="display:inline">
|
||||||
|
<%= link_to fa_icon("pencil"), verwalten_thema_path(small) , class: "btn btn-link navbar-btn" if can? :edit, small %>
|
||||||
|
<div class="btn-group">
|
||||||
|
<button type="button" class="btn btn-link dropdown-toggle" data-hover="dropdown" aria-expanded="false">
|
||||||
|
<%= fa_icon('plus') %>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu" role="menu">
|
||||||
|
<li><%= link_to ff_icon('ffi1-cleaning1')+" Neues Dokument", new_document_path(:parent_id=>small.id, :parent_type=>"Thema"), :remote=>true %>
|
||||||
|
</li>
|
||||||
|
<li><%= link_to "Neues Meeting", new_meeting_path(:parent_id=>small.id, :parent_type=>"Thema"), :remote=>true %>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div></div>
|
||||||
|
</span>
|
||||||
|
<% end %></h2>
|
||||||
</a>
|
</a>
|
||||||
<%= image_tag small.titlepics.first.datei.url unless small.titlepics.first.nil? %>
|
<%= image_tag small.titlepics.first.datei.url unless small.titlepics.first.nil? %>
|
||||||
<% if small.is_outdated? %>
|
<% if small.is_outdated? %>
|
||||||
@@ -25,7 +42,9 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
<% if can?(:edit,small) || !small.meetings.empty? %>
|
<% if can?(:edit,small) %>
|
||||||
|
<div id="<%= Meeting.new_divid_for(small) %>"></div>
|
||||||
|
<% if !small.meetings.empty? %>
|
||||||
<b>Treffen/Sitzungen</b>
|
<b>Treffen/Sitzungen</b>
|
||||||
<%= link_to "Neues Meeting", new_meeting_path(:parent_id=>small.id, :parent_type=>"Thema"), :remote=>true %>
|
<%= link_to "Neues Meeting", new_meeting_path(:parent_id=>small.id, :parent_type=>"Thema"), :remote=>true %>
|
||||||
<div id="<%= Meeting.new_divid_for(small) %>"></div>
|
<div id="<%= Meeting.new_divid_for(small) %>"></div>
|
||||||
@@ -35,15 +54,17 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<%= render :partial=>"meetings/meeting_list", object: small.meetings, locals: {parent: small} %>
|
<%= render :partial=>"meetings/meeting_list", object: small.meetings, locals: {parent: small} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
<% if can?(:edit,small)|| ! small.documents.empty? %>
|
<% if can?(:edit,small) %>
|
||||||
|
|
||||||
<b>Dokumente</b>
|
|
||||||
<%= link_to "Neues Dokument", new_document_path(:parent_id=>small.id, :parent_type=>"Thema"), :remote=>true %>
|
|
||||||
<div id="<%= Document.new_divid_for(small) %>"></div>
|
<div id="<%= Document.new_divid_for(small) %>"></div>
|
||||||
|
|
||||||
<% unless small.documents.empty? %>
|
<% unless small.documents.empty? %>
|
||||||
|
<b>Dokumente</b>
|
||||||
|
<%= link_to "Neues Dokument", new_document_path(:parent_id=>small.id, :parent_type=>"Thema"), :remote=>true %>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<% small.documents.each do |d| %>
|
<% small.documents.each do |d| %>
|
||||||
<%= render d %>
|
<%= render d %>
|
||||||
|
|||||||
Reference in New Issue
Block a user