Commits

Akiko Takano committed f73804e

Admin menuにアイコンが出るように調整してみました

Comments (0)

Files changed (4)

assets/images/log.png

Added
New image

assets/stylesheets/logs.css

 #redmine_log_show {
     overflow: auto;
     height: 600px;
-}
+}
+
+#admin-menu a.redmine-logs { background-image: url(../images/log.png); }
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 require 'redmine'
+require 'admin_menu_hooks'
 
 Redmine::Plugin.register :redmine_logs do
   name 'Redmine Logs plugin'

lib/admin_menu_hooks.rb

+class AdminMenuHooks < Redmine::Hook::ViewListener
+  def view_layouts_base_html_head(context = { })
+    stylesheet_link_tag('logs.css', :plugin => 'redmine_logs')
+  end
+end