Browse Source

Fixed alignment in issues/index

Dmitry Yu Okunev 5 years ago
parent
commit
1188fa1270

+ 1 - 0
app/views/css/_redmine_subject_compilation.html.erb

@@ -0,0 +1 @@
+<%= stylesheet_link_tag 'redmine_subject_compilation.css', :plugin => 'redmine_subject_compilation' %>

+ 3 - 0
assets/stylesheets/redmine_subject_compilation.css

@@ -0,0 +1,3 @@
+td.subject_combined {
+	text-align:	left !important;
+}

+ 2 - 0
init.rb

@@ -6,6 +6,8 @@ issue_query.add_available_column(QueryColumn.new(:subject_combined, :sortable =>
 
 require 'redmine_subject_compilation/patches/app/model/issue'
 require 'redmine_subject_compilation/patches/app/helpers/queries_helper'
+require 'redmine_subject_compilation/hooks/view_issues_index_bottom'
+
 
 Redmine::Plugin.register :redmine_subject_compilation do
 	name 'Plugin to print make a combined subject field with others'

+ 5 - 0
lib/redmine_subject_compilation/hooks/view_issues_index_bottom.rb

@@ -0,0 +1,5 @@
+module SubjectCompilation
+        class Hooks < Redmine::Hook::ViewListener
+                render_on :view_issues_index_bottom, :partial => 'css/redmine_subject_compilation'
+        end
+end