This commit is contained in:
2014-10-27 14:57:27 +01:00
11 changed files with 61 additions and 9 deletions

1
.gitignore vendored
View File

@@ -32,6 +32,7 @@ console
/public/uploads/ /public/uploads/
/vendor/* /vendor/*
/bak/* /bak/*
/solr/*
*# *#
Gemfile.lock Gemfile.lock
/config/database.yml /config/database.yml

View File

@@ -15,6 +15,7 @@
//= require jquery.ui.all //= require jquery.ui.all
// require jquery.ui.draggable // require jquery.ui.draggable
// require jquery.ui.sortable // require jquery.ui.sortable
// require jquery.ui.gallery
// require jquery.sortable // require jquery.sortable
// require jquery-ui // require jquery-ui
//= require_tree . //= require_tree .

View File

@@ -55,7 +55,7 @@ class Ability
#----------------------------------------------------- #-----------------------------------------------------
# Rechteverwaltung fuer Fotos # Rechteverwaltung fuer Fotos
can [:show,:index], Gallery # can [:show,:index], Gallery
if loggedin if loggedin
end end
if( user.has_role?("fetuser") || user.has_role?("fetadmin")) if( user.has_role?("fetuser") || user.has_role?("fetadmin"))

View File

@@ -1,3 +1,23 @@
<%= content_for :header do %>
<title>Fetsite - <%= @fetprofile.name %></title>
<% set_meta_tags :og => {
:image => @fetprofile.picture.portrait.url.to_s,
:title => @fetprofile.name.to_s ,
:type => "profile",
:url=>fetprofile_path(@fetprofile,:theme=>nil),
:profile=> {
:first_name=>@fetprofile.vorname,
:last_name=>@fetprofile.nachname
}
}
%>
<% set_meta_tags :og=>{:article=> {:published_time=>I18n.l(@neuigkeit.try(:datum).try(:to_date)) }} unless @neuigkeit.try(:datum).try(:to_date).nil? %>
<%= display_meta_tags %>
<% end %>
<%= render 'fetprofiles/tabs' %> <%= render 'fetprofiles/tabs' %>
<p id="notice"><%= notice %></p> <p id="notice"><%= notice %></p>
<div style="max-width:70em"> <div style="max-width:70em">

View File

@@ -75,5 +75,9 @@
<script src="js/load-image.js"></script> <script src="js/load-image.js"></script>
<script src="js/bootstrap-image-gallery.js"></script> <script src="js/bootstrap-image-gallery.js"></script>
<script type="text/javascript"> <script type="text/javascript">
//$('#modal-gallery.fade').css('top', '50%'); $('#modal-gallery.fade').css('top', '50%');
</script> </script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="//blueimp.github.io/Gallery/js/jquery.blueimp-gallery.min.js"></script>
<script src="js/bootstrap-image-gallery.min.js"></script>

View File

@@ -1,6 +1,6 @@
<div class="content-wrap content-column"> <div class="content-wrap content-column">
<p> <div>
<%= semantic_form_for :search,:remote=>true, :url=>search_home_index_path, :html=>{:id=>"search_form",:class=>"navbar-search", :method=>'get'} do |f| %> <%= semantic_form_for :search,:remote=>true, :url=>search_home_index_path, :html=>{:id=>"search_form",:class=>"", :method=>'get'} do |f| %>
<%= f.input :query, :input_html => { :name => 'query' } , :label=>false, :class=>"search-query" %> <%= f.input :query, :input_html => { :name => 'query' } , :label=>false, :class=>"search-query" %>
<%= f.actions do %> <%= f.actions do %>
<%= f.action :submit, :as => :input %> <%= f.action :submit, :as => :input %>
@@ -8,13 +8,10 @@
<% end %> <% end %>
</p> </div>
<p>
<div id="searchresults"> <div id="searchresults">
<%= render :partial=>"home/search_results" %> <%= render :partial=>"home/search_results" %>
</div> </div>
</p>
</div> </div>

View File

@@ -15,7 +15,9 @@
<li><%= link_to I18n.t(:info,:scope=>'home' ),themengruppen_path %></li> <li><%= link_to I18n.t(:info,:scope=>'home' ),themengruppen_path %></li>
<li><%= link_to I18n.t('mitarbeiter',:scope=>'home' ),fetprofiles_path %></li> <li><%= link_to I18n.t('mitarbeiter',:scope=>'home' ),fetprofiles_path %></li>
<% if can? :index, Gallery %>
<li><%= link_to I18n.t('fotos',:scope=>'home' ),galleries_path %></li> <li><%= link_to I18n.t('fotos',:scope=>'home' ),galleries_path %></li>
<% end %>
<li><%= link_to I18n.t(:studien,:scope=>'home' ), studien_path %></li> <li><%= link_to I18n.t(:studien,:scope=>'home' ), studien_path %></li>
<li> <%= link_to I18n.t("home.search"), search_home_index_path %></li> <li> <%= link_to I18n.t("home.search"), search_home_index_path %></li>
<li> <%= link_to I18n.t("home.kontakt"), kontakt_home_index_path %></li> <li> <%= link_to I18n.t("home.kontakt"), kontakt_home_index_path %></li>

View File

@@ -6,6 +6,7 @@
:title => @neuigkeit.title.to_s + " (" + @neuigkeit.rubrik.name.to_s + ")", :title => @neuigkeit.title.to_s + " (" + @neuigkeit.rubrik.name.to_s + ")",
:type => "article", :type => "article",
:description =>@neuigkeit.text_first_words, :description =>@neuigkeit.text_first_words,
:url=>neuigkeit_path(:theme=>nil),
:article=> { :article=> {
:author=>@neuigkeit.author.text :author=>@neuigkeit.author.text
} }

View File

@@ -1,5 +1,12 @@
<%= content_for :header do %> <%= content_for :header do %>
<title>Fetsite - <%= I18n.t('home.news') %></title> <title>Fetsite - <%= I18n.t('home.news') %></title>
<% set_meta_tags :og => {
:title => "Fetsite - "+I18n.t('home.news'),
:url=> rubriken_path(:theme=>nil)
}
%>
<%= display_meta_tags %>
<% end %> <% end %>
<%= render 'tabs' %> <%= render 'tabs' %>
<p id="notice"><%= notice %></p> <p id="notice"><%= notice %></p>

View File

@@ -1,5 +1,12 @@
<%= content_for :header do %> <%= content_for :header do %>
<title>Fetsite - <%= @rubrik.name %></title> <title>Fetsite - <%= @rubrik.name %></title>
<% set_meta_tags :og => {
:title => @rubrik.name.to_s,
:url=> rubrik_path(@rubrik,:theme=>nil)
}
%>
<%= display_meta_tags %>
<% end %> <% end %>
<%= render 'tabs' %> <%= render 'tabs' %>
<p id="notice"><%= notice %></p> <p id="notice"><%= notice %></p>

View File

@@ -1,3 +1,15 @@
<%= content_for :header do %>
<title>Fetsite - <%= @themengruppe.title %></title>
<% set_meta_tags :og => {
:title => @themengruppe.title.to_s,
:url=> themengruppe_path(@themengruppe,:theme=>nil,:locale=>nil)
}
%>
<%= display_meta_tags %>
<% end %>
<div class="content-wrap content-column" > <div class="content-wrap content-column" >
<ul class="linklist"> <ul class="linklist">
<% if @themengruppe.public %> <% if @themengruppe.public %>