AutoCommit Sam Sep 12 22:03:04 CEST 2015
This commit is contained in:
53
app/views/home/infoscreen.html.erb
Normal file
53
app/views/home/infoscreen.html.erb
Normal file
@@ -0,0 +1,53 @@
|
||||
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<%= stylesheet_link_tag "themes/"+theme_name+"/application", :media => "all" unless theme_name.empty? %>
|
||||
<%= stylesheet_link_tag "application", :media=>"all" if theme_name.empty? %>
|
||||
|
||||
<%= javascript_include_tag "application" %>
|
||||
<%= javascript_include_tag "jmpress" %>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id ="jmpress">
|
||||
<% i=1 %>
|
||||
<% @neuigkeiten.each do |n| %>
|
||||
|
||||
<div class="step contentbox" id="step-<%=i%>" data-x="<%= i *2000 %>" data-y="<%= Random.rand(0..5)*200 %>" data-rotate="<%= Random.rand(0..18)*10 %>" style="width:1024px; height:768px; padding: 50px; display:block" data-duration="1500"><% @toolbar_elements=[];@questions=[] %>
|
||||
<div class="media">
|
||||
<% unless n.picture_robust.big_thumb.to_s.empty? %>
|
||||
<div class="pull-left" href="#">
|
||||
<p><br><%= link_to image_tag(n.picture_robust.big_thumb),n.picture_robust.try(:url) %>
|
||||
</p>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="media-body">
|
||||
<h1 itemprop="name">
|
||||
<%= raw(n.title) %> <%#= link_to fa_icon("edit"), edit_rubrik_neuigkeit_path(n.rubrik, n), remote: true if can? :edit, n %>
|
||||
</h1>
|
||||
<div itemprop="articleBody" style="font-size:large">
|
||||
<%= raw(n.text) %>
|
||||
<% if n.has_calentries? %>
|
||||
<div class="pull-right" href="#">
|
||||
<%= fa_icon("calendar 2x") %>
|
||||
<%= n.relevant_calentry.text %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<% i = i+1 %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$('#jmpress').jmpress();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
Reference in New Issue
Block a user