AutoCommit Mit Aug 26 12:03:05 CEST 2015
This commit is contained in:
1
app/views/calentries/_mail.html.erb
Normal file
1
app/views/calentries/_mail.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= mail.icon_text %>
|
||||
10
app/views/neuigkeiten/_mail.html.erb
Normal file
10
app/views/neuigkeiten/_mail.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<h1>
|
||||
<%= mail.title%>
|
||||
</h1>
|
||||
<%= content_tag(:img,"",src: "http://" + ActionMailer::Base.default_url_options[:host].to_s + mail.picture.big_thumb.url.to_s) %>
|
||||
<%=url_for controller: "neuigkeiten",action: :show, :id=>mail.id, only_path: false %>
|
||||
<%= raw(mail.text) %>
|
||||
<% mail.questions.each do |q| %>
|
||||
<%= render partial:"survey/questions/mail", object: q %>
|
||||
<% end %>
|
||||
<%= link_to "Auf Fet.at weiterlesen", rubrik_neuigkeit_url(mail.rubrik, mail,:locale=>:de, :theme=>nil) %>
|
||||
@@ -1,3 +1,11 @@
|
||||
<%= @calentries.each do |ce| %>
|
||||
<%= render @calentry%>
|
||||
<%= stylesheet_link_tag "http://"+ActionMailer::Base.default_url_options[:host].to_s + "/assets/themes/blue2/application.css", :media=>"all" %>
|
||||
|
||||
<% @calentries.each do |ce| %>
|
||||
<hr/>
|
||||
<% if can?(:show , ce.object) %>
|
||||
<%= render partial: "calentries/mail", object: ce %>
|
||||
<%= render partial: "neuigkeiten/mail", object: ce.object if ce.object.kind_of?(Neuigkeit)%>
|
||||
<% end %>
|
||||
<hr/>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user