LoginSignup
0
0

More than 5 years have passed since last update.

Redmine 3.4.6 表示カスタマイズ

Last updated at Posted at 2018-08-10

ガントチャートの表示を変更

元cssのバックアップ

cd /var/lib/redmine/public/stylesheets/
cp application.css application.css.bak

変更点

vi application.css

// チケット一覧の文字サイズ
1149 .gantt_subjects { font-size: 0.8em; } 
↓
1149 .gantt_subjects { font-size: 1.0em; } 

//チャート内文字の文字サイズ
1159   font-size:0.8em;
↓
1159   font-size:1.0em;

//左のサイドバーのサイズ
 //文字位置
  85 #sidebar{ float: right; width: 22%; position: relative; z-index: 9; padding: 0; margin: 0;}
  86 * html #sidebar{ width: 22%; }
 //グレー部分のサイズ
  96 #content { width: 95%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; }
  97 * html #content{ width: 95%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}
↓
  85 #sidebar{ float: right; width: 13%; position: relative; z-index: 9; padding: 0; margin: 0;}
  86 * html #sidebar{ width: 13%; }
  96 #content { width: 85%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; }
  97 * html #content{ width: 85%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}

タスク一覧の幅

チケットの進捗率を5%刻みにする

元erbバックアップ

cd /var/lib/redmine/app/views/issues/
cp _attributes.html.erb _attributes.html.erb.bak

変更点

72行目
<p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }), :required => @issue.required_attribute?('done_ratio') %></p>

↓

<p><%= f.select :done_ratio, ((0..10).step(0.5).to_a.collect {|r| ["#{(r*10).to_i} %", (r*10).to_i] }), :required => @issue.required_attribute?('done_ratio') %></p>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0