AutoCommit Sam Aug 22 18:17:03 CEST 2015
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
class Neuigkeit < ActiveRecord::Base
|
class Neuigkeit < ActiveRecord::Base
|
||||||
attr_accessible :datum, :text, :title, :rubrik_id, :author_id,:picture, :calentries_attributes, :flag_important
|
attr_accessible :datum, :text, :title, :rubrik_id, :author_id,:picture,:picture_cache, :calentries_attributes, :flag_important
|
||||||
belongs_to :author, :class_name =>'User'
|
belongs_to :author, :class_name =>'User'
|
||||||
belongs_to :rubrik, :class_name =>'Rubrik', :foreign_key => "rubrik_id"
|
belongs_to :rubrik, :class_name =>'Rubrik', :foreign_key => "rubrik_id"
|
||||||
has_one :calendar, through: :rubrik
|
has_one :calendar, through: :rubrik
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<div class="media">
|
<div class="media">
|
||||||
<% unless @neuigkeit.picture_robust.big_thumb.to_s.empty? %>
|
<% unless @neuigkeit.picture_robust.big_thumb.to_s.empty? %>
|
||||||
<div class="pull-left" href="#">
|
<div class="pull-left" href="#" style="width:200px">
|
||||||
<p><br><%= link_to image_tag(@neuigkeit.picture_robust.big_thumb.url),@neuigkeit.picture_robust.try(:url) %>
|
<p><br><%= link_to image_tag(@neuigkeit.picture_robust.big_thumb.url),@neuigkeit.picture_robust.try(:url) %>
|
||||||
<%= f.input :picture, as: :uploader %>
|
<%= f.input :picture, as: :uploader %>
|
||||||
<%= f.hidden_field :picture_cache %>
|
<%= f.hidden_field :picture_cache %>
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="media-body">
|
<div class="media-body" style="border: dashed black thin">
|
||||||
<h1 itemprop="name" class="editable_simple" data-target="#neuigkeit_title">
|
<h1 itemprop="name" class="editable_simple" data-target="#neuigkeit_title">
|
||||||
<%= raw(@neuigkeit.title) %>
|
<%= raw(@neuigkeit.title) %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user