diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6bdac5ee2..e4e94c123 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -9,7 +9,7 @@ class ApplicationController < ActionController::Base def front_end_available(module_app_title='') app_controller = ModuleApp.first(conditions: {:title => module_app_title} ) unless app_controller.enable_frontend? - render :nothing + render :nothing => true end end diff --git a/lib/fraisier/layout.html b/lib/fraisier/layout.html index ebab851a3..f6fb99425 100644 --- a/lib/fraisier/layout.html +++ b/lib/fraisier/layout.html @@ -28,6 +28,7 @@
+<%= t('bulletin.category') %> | +<%= t('bulletin.status') %> | <%= t('bulletin.postdate') %> | +<%= t('bulletin.deadline') %> | +<%= t('bulletin.category') %> | <%= t('bulletin.title') %> | -<%= t('bulletin.text') %> | |
---|---|---|---|---|---|---|---|
<%= post.bulletin_category.name rescue nil %> | +<%= post.postdate %> | -<%= link_to post.title, panel_announcement_front_end_bulletin_path(post) %> | -<%= post.text %> | +<%= (post.deadline) ? post.deadline : t('bulletin.no_deadline') %> | +<%= post.bulletin_category.i18n_variable[I18n.locale] %> | +<%= link_to post.title, panel_announcement_front_end_bulletin_path(post) %> + <%#= link_to post.title, panel_announcement_back_end_bulletin_path(post) %> + |
<%= flash_messages %>
-+
+ <%= @bulletin.bulletin_category.i18n_variable[I18n.locale] %> +
+
+
- <%= t('announcement.image') %> - <%= image_tag(@bulletin.image.url, :size => "320x240") if @bulletin.image.file %> -
- -+
+
<%= @bulletin.subtitle %>
+ <%= link_to "read more >",panel_announcement_front_end_bulletin_path(@bulletin.id) %> + read more > +