forked from bofh/fetsite
meeting style
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
<div class="contentbox" id="calentry_<%= calentry.id%>">
|
||||
<% image_tag("/iconnavy/time.png") %>
|
||||
<%= fa_icon("calendar 2x") %>
|
||||
|
||||
<% if (calentry.start.to_date - calentry.ende.to_date) < 1.day
|
||||
format=:timeonly
|
||||
else
|
||||
format =:default
|
||||
end %>
|
||||
<%= calentry.text %>
|
||||
<%= calentry.icon_text %>
|
||||
<% if !(defined? manage) || manage %>
|
||||
<%= link_to "edit", edit_calentry_path(calentry),:remote=>true if can? :edit, calentry %>
|
||||
<%= link_to 'Delete', calentry, method: :delete, data: { confirm: 'Are you sure?' } , remote: true if can? :delete, calentry %>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<div class="contentbox" id="meeting_<%= meeting.id%>">
|
||||
|
||||
<b><%= link_to meeting.text, meeting %></b>
|
||||
<b><%= image_tag meeting.meetingtyp.picture.thumb.url unless meeting.meetingtyp.picture.thumb.url.nil? %><%= link_to meeting.text.html_safe, meeting %></b>
|
||||
<%= link_to "Ankündigung", rubrik_neuigkeit_path(meeting.neuigkeit.rubrik, meeting.neuigkeit) unless meeting.neuigkeit.nil? %>
|
||||
<%= link_to "ankündigen", announce_meeting_path(meeting), remote: true if meeting.neuigkeit.nil? %>
|
||||
<%= link_to "edit", edit_meeting_path(meeting), remote: true %>
|
||||
<%= link_to 'Delete', meeting, method: :delete, data: { confirm: 'Are you sure?' } , remote: true if can? :delete, meeting %>
|
||||
<%= render meeting.calentry, locals: {manage: 0} unless meeting.calentry.nil? %>
|
||||
<% render meeting.calentry, locals: {manage: 0} unless meeting.calentry.nil? %>
|
||||
<%= link_to "Agenda" , create_agenda_meeting_path(meeting), :remote=>true if meeting.agenda.nil? %>
|
||||
<%= link_to "Protokoll" , create_protocol_meeting_path(meeting),:remote=>true if meeting.protocol.nil? %>
|
||||
<%= render meeting.agenda unless meeting.agenda.nil? %>
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
<%= f.input :rubrik %>
|
||||
<%= f.input :agendaintern %>
|
||||
<%= f.input :protocolintern %>
|
||||
<%= image_tag @meetingtyp.picture.thumb.url %>
|
||||
<%= f.input :picture %>
|
||||
|
||||
<% end %>
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
<div class="media" itemscope itemtype="http://schema.org/Article">
|
||||
<meta itemprop="sameAs" content="<%= rubrik_neuigkeit_path(neuigkeit.rubrik,neuigkeit, {theme: nil,locale: nil})%>"/>
|
||||
<meta itemprop="url" content="<%= rubrik_neuigkeit_path(neuigkeit.rubrik,neuigkeit, {theme: nil,locale: nil})%>"/>
|
||||
|
||||
<div class="pull-left" href="#">
|
||||
<p><br>
|
||||
<% unless neuigkeit.picture.url.nil? %><%= image_tag neuigkeit.picture.thumb.url %> <meta imageprop="thumbnailUrl" content="<%= neuigkeit.picture.thumb.url%>"/>
|
||||
<% unless neuigkeit.picture_robust.url.nil? %><%= image_tag neuigkeit.picture_robust.thumb.url %> <meta imageprop="thumbnailUrl" content="<%= neuigkeit.picture_robust.thumb.url%>"/>
|
||||
<% end %> </p>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<%= 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?
|
||||
<% unless @neuigkeit.picture_robust.url.nil?
|
||||
picture_url=URI(root_url)
|
||||
picture_url.path=@neuigkeit.picture.url(:locale=>nil, :theme=>nil)
|
||||
picture_url.path=@neuigkeit.picture_robust.url(:locale=>nil, :theme=>nil)
|
||||
end
|
||||
%>
|
||||
<% set_meta_tags :og => {
|
||||
@@ -49,9 +49,9 @@ end
|
||||
<div class="sticker sticker-red"> Not Published</div> <% end %>
|
||||
|
||||
<div class="media">
|
||||
<% unless @neuigkeit.picture.big_thumb.to_s.empty? %>
|
||||
<% unless @neuigkeit.picture_robust.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><br><%= link_to image_tag(@neuigkeit.picture_robust.big_thumb.url),@neuigkeit.picture_robust.try(:url) %>
|
||||
</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user