[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[kagemai-users:0287] Re: トップページ項目から報告者名と最終更新日を非表示にする
福岡です。
"Sakuragi Yukari" san wrote:
| トップページに表示させたい項目が多いため
| 一覧表示の優先度の低い報告者名と最終更新日を
| 非表示にしたいと思っていますが
| どのようにしたらよろしいでしょうか?
例えば、resource/ja/template/_default/report_index.rhtml を
以下のように変更するとできます。
すべてのプロジェクトに影響してもよければ直接編集で。
特定のプロジェクトのみで変更したいのであれば、report_index.rhtml を、
そのプロジェクトのデータディレクトリの template サブディレクトリに
コピーして、そのコピーを編集してください。
diff -u "report_index.rhtml" "report_index.rhtml.new"
--- report_index.rhtml 2004-07-06 20:44:38.000000000 +0900
+++ report_index.rhtml.new 2004-11-15 23:26:32.302000000 +0900
@@ -29,10 +29,6 @@
<th><%= etype.name %></th>
<% end %>
- <% unless hide_first_reporter then %>
- <th>最初の報告者</th>
- <% end %>
- <th>最終更新日</th>
</tr>
<% if reports then
reports.each do |report| %>
@@ -51,11 +47,6 @@
<% end %>
<% end %>
- <% unless hide_first_reporter then %>
- <td style="white-space: nowrap;"><%= report.first.element('email').html_value() %></td>
- <% end %>
-
- <td style="white-space: nowrap;"><span class="date"><%= report.modify_time.html_value() %></span></td>
</tr>
<% end %>
<% else %>
--
福岡ともゆき <fukuoka@xxxxxxxxxxxxx>
http://www.daifukuya.com/