Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add activity pages's css style code;remove use of will_paginate
- Loading branch information
1 parent
0e9c4b3
commit b4cde43
Showing
6 changed files
with
24 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,10 @@ | ||
# Hooks to attach to the Redmine base layouts(for dt.faq style in activity). | ||
class EzfaqLayoutHook < Redmine::Hook::ViewListener | ||
|
||
# def protect_against_forgery? | ||
# false | ||
# end | ||
|
||
#dt.faq { background-image: url(../plugin_assets/ezfaq_plugin/images/question.png); } | ||
|
||
def view_layouts_base_html_head(context = { }) | ||
#self.action_name | ||
end | ||
|
||
def view_layouts_base_body_bottom(context = { }) | ||
#context[:action_name] | ||
context[:controller].action_name | ||
#debug(context) | ||
if context[:controller].action_name == 'activity' | ||
'<style type="text/css">dt.faq { background-image: url(/plugin_assets/ezfaq_plugin/images/question.png); }</style>' | ||
end | ||
end | ||
|
||
end |