AutoCommit Mit Aug 19 22:03:03 CEST 2015
This commit is contained in:
@@ -52,9 +52,7 @@ m.save
|
||||
def ff_icon (name)
|
||||
content_tag("i","", class: "ficon "+name )
|
||||
end
|
||||
def fa_icon_stack(name1, name2)
|
||||
content_tag("span", content_tag("i","",class:"fa fa-stack-2x fa-"+name1)+ content_tag("i","",class:"fa fa-stack-1x fa-"+name2),class: "fa-stack fa-sm")
|
||||
end
|
||||
|
||||
def ffi1_list
|
||||
y=YAML.load_file("#{::Rails.root.to_s}/config/flatfeticon1.yml")
|
||||
y["ffi1"]
|
||||
@@ -152,7 +150,9 @@ end
|
||||
end
|
||||
raw(out)
|
||||
end
|
||||
|
||||
def li_tag(content)
|
||||
content_tag("li", content)
|
||||
end
|
||||
def meta_itemprop(itemprop, content)
|
||||
tag("meta", itemprop: itemprop, content: content)
|
||||
end
|
||||
|
||||
20
app/views/themes/blue2/neuigkeiten/_menu.html.erb
Normal file
20
app/views/themes/blue2/neuigkeiten/_menu.html.erb
Normal file
@@ -0,0 +1,20 @@
|
||||
<span class="btn-group">
|
||||
<%= link_to fa_icon("edit"), "#", class: "btn" %>
|
||||
<%= link_to fa_icon("paperclip"), "#", class: "btn" %>
|
||||
</span>
|
||||
|
||||
<div class="dropdown" style="display:inline">
|
||||
<%= link_to fa_icon("plus"), "#", class: "btn dropdown-toggle", data: {toggle: "dropdown"}, title: "plus" %>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="dropdown pull-right">
|
||||
<a class="dropdown-toggle btn" data-toggle="dropdown" title="publish" href="#"><%= fa_icon("mail-forward")%></a>
|
||||
<ul class="dropdown-menu">
|
||||
<%= li_tag(link_to(fa_icon("facebook-square") + " post on facebook", publish_to_facebook_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit))) %>
|
||||
<%= li_tag(link_to(ff_icon("icon-plus")+ I18n.t('neuigkeit.publish'), publish_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit)) )%>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -1,26 +1,19 @@
|
||||
<div id="neuigkeit_<%= neuigkeit_view.id %>" class="contentbox" itemscope itemtype="http://schema.org/Article">
|
||||
<meta itemprop="about" content="<%= neuigkeit_view.text_first_words %>"/>
|
||||
<div id="neuigkeit_<%= neuigkeit_view.id %>" class="contentbox" itemscope itemtype="http://schema.org/Article">
|
||||
<%= meta_itemprop("about", neuigkeit_view.text_first_words) %>
|
||||
<meta itemprop="sameAs" content="<%= neuigkeit_url(neuigkeit_view,:theme=>nil)%>"/>
|
||||
<meta itemprop="url" content="<%= neuigkeit_url(neuigkeit_view,:theme=>nil)%>"/>
|
||||
<%= meta_itemprop("sameAs", neuigkeit_url(neuigkeit_view,:theme=>nil)) %>
|
||||
<%= meta_itemprop("url", neuigkeit_url(neuigkeit_view,:theme=>nil)) %>
|
||||
|
||||
|
||||
<div><span class="btn-group">
|
||||
<%= link_to fa_icon("edit"), "#", class: "btn" %>
|
||||
<div>
|
||||
<%= render partial: "menu" %>
|
||||
|
||||
<%= link_to fa_icon("plus"), "#", class: "btn" %></span>
|
||||
|
||||
<div class="dropdown pull-right">
|
||||
<a class="dropdown-toggle btn" data-toggle="dropdown" title="publish" href="#"><%= fa_icon("mail-forward")%></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<%= link_to fa_icon("facebook-square") + " post on facebook", publish_to_facebook_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit) %>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<%#= render 'layouts/pretty_toolbar', :object=> @toolbar_elements %>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
<%= render 'layouts/pretty_toolbar', :object=> @toolbar_elements %>
|
||||
</div>
|
||||
<br> <div class="media">
|
||||
<span itemprop="articleSection">
|
||||
<%= ff_icon(neuigkeit_view.rubrik.icon) unless neuigkeit_view.rubrik.icon.nil? or neuigkeit_view.rubrik.icon.empty? %> <%= neuigkeit_view.rubrik.name %>
|
||||
|
||||
Reference in New Issue
Block a user