forked from bofh/fetsite
AutoCommit Die Jun 9 15:03:01 CEST 2015
This commit is contained in:
@@ -20,6 +20,9 @@ class Rubrik < ActiveRecord::Base
|
||||
has_one :calendar
|
||||
validates :calendar , :presence=>true
|
||||
before_validation :sanitize
|
||||
def icon_name
|
||||
(ActionController::Base.helpers.content_tag("i","", class: self.icon)) + self.name
|
||||
end
|
||||
def moderator
|
||||
u=User.with_role(:newsmoderator).first
|
||||
if !u.nil?
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
|
||||
<div class="media">
|
||||
<span itemprop="articleSection">
|
||||
<%= ff_icon(@neuigkeit.rubrik.icon) unless @neuigkeit.rubrik.icon.nil? or @neuigkeit.rubrik.icon.empty? %> <%= @neuigkeit.rubrik.name %>
|
||||
<%= f.input :rubrik, :as=> :select, :collection=>Rubrik.all,:class=> :selectpicker, :label=>false , :member_label=> :name %>
|
||||
|
||||
<% ff_icon(@neuigkeit.rubrik.icon) unless @neuigkeit.rubrik.icon.nil? or @neuigkeit.rubrik.icon.empty? %> <% @neuigkeit.rubrik.name %>
|
||||
</span>
|
||||
<span class="pull-right">
|
||||
<span itemprop="author"><%= @neuigkeit.author.email.to_s unless @neuigkeit.try(:author).try(:email).to_s %>
|
||||
@@ -64,4 +66,6 @@
|
||||
<%= tinymce :inline_div %>
|
||||
<%= tinymce :inline_simple %>
|
||||
<script>
|
||||
$(function(){$('#toolBar').stick_in_parent();})</script>
|
||||
$(function(){$('#toolBar').stick_in_parent();})
|
||||
$('.selectpicker').selectpicker();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user