forked from saurabh/orbit4-5
fix announcement template index page-title
This commit is contained in:
parent
883fb31966
commit
f4635502ef
|
@ -157,6 +157,16 @@ module OrbitBackendHelper
|
|||
render_401 if !has_access?
|
||||
end
|
||||
|
||||
def get_referer_url
|
||||
referer_path = Rails.application.routes.recognize_path(request.referer)
|
||||
if referer_path[:controller]!="pages" or (referer_path[:controller]==params[:controller] and referer_path[:action]!="index")
|
||||
referer_url = '/'+params[:controller]
|
||||
else
|
||||
referer_url = request.referer
|
||||
end
|
||||
referer_url
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
module Orbit::FormBuilder
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="index-announcement index1">
|
||||
<h3 class="index-title">
|
||||
<span>{{widget-title}}</span>
|
||||
<span>{{page-title}}</span>
|
||||
</h3>
|
||||
<div class="row" data-level="0" data-list="announcements">
|
||||
<div class="index-content col-sm-6">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="index-announcement index1">
|
||||
<h3 class="index-title">
|
||||
<span>{{widget-title}}</span>
|
||||
<span>{{page-title}}</span>
|
||||
</h3>
|
||||
<div class="row" data-level="0" data-list="announcements">
|
||||
<div class="index-content col-sm-6">
|
||||
|
|
Loading…
Reference in New Issue