diff --git a/app/views/home/infoscreen.html.erb b/app/views/home/infoscreen.html.erb index 981ab89..a06b495 100644 --- a/app/views/home/infoscreen.html.erb +++ b/app/views/home/infoscreen.html.erb @@ -15,45 +15,38 @@ <% i=1 %> <% @neuigkeiten.each do |n| %> -
<% @toolbar_elements=[];@questions=[] %> - +
<% @toolbar_elements=[];@questions=[] %>
+
+ <% unless n.picture_robust.big_thumb.to_s.empty? %> +

+
<%= link_to image_tag(n.picture_robust.big_thumb),n.picture_robust.try(:url) %>

+ <% end %> +

+ <% if n.has_calentries? %> +
+ <%= fa_icon("calendar 2x") %> + <%= n.relevant_calentry.text %> +
+ <% elsif n.has_meeting? %> +
+ <%= fa_icon("calendar 2x") %> + <%= n.meeting.calentry.text unless n.meeting.calentry.nil? %> +
-
- <% unless n.picture_robust.big_thumb.to_s.empty? %> -

-
<%= link_to image_tag(n.picture_robust.big_thumb),n.picture_robust.try(:url) %>

- <% end %> -

- <% if n.has_calentries? %> -
- <%= fa_icon("calendar 2x") %> - <%= n.relevant_calentry.text %> -
- <% elsif n.has_meeting? %> -
- <%= fa_icon("calendar 2x") %> - <%= n.meeting.calentry.text unless n.meeting.calentry.nil? %> + <% end %> +

- <% end %> -

-
- -
-

- <%= raw(n.title) %> <%#= link_to fa_icon("edit"), edit_rubrik_neuigkeit_path(n.rubrik, n), remote: true if can? :edit, n %> -

-
- <%= raw(n.text_infoscreen_words) %> - - -
- -
-
- - +
+

+ <%= raw(n.title) %> <%#= link_to fa_icon("edit"), edit_rubrik_neuigkeit_path(n.rubrik, n), remote: true if can? :edit, n %> +

+
+ <%= raw(n.text_infoscreen_words) %> +
+
+
<% i = i+1 %> <% end %>