[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[kagemai-users:0289] Re: トップページ項目から報告者名と最終更新日を非表示にする
何度もすみません。
もう一つあります。
検索結果を表示させるときも同様に
報告者と更新日を非表示にするには
どのファイルを更新すればよろしいでしょうか
ご指導よろしくおねがいします
> できました!ありがとうございます。
>
> 教えていただいたとおりにやって
> 報告者名と最終更新日を消すことはできたのですが
> 表示させたかったデータへのパスをトップページの項目と設定すると、
> やはり長すぎて表がうまく表示されません。
>
> 以前ディレクトリへのパスへリンクを設定するために
>
> \\176.13.×.×.\C\test\041004-01
>
> などのようなディレクトリへリンクする場合
> パス専用のフィールドを追加して
>
> def do_render(element,value)
> Value.href(value)
> end
>
> というものを使えば、リンクできると教えていただきましたが
>
> do_renderの引数である
> element (おそらくアドレス)と value(表示?)を切り分ければ
> トップページの項目に表示されるのは
>
> 上の
> \\176.13.×.×.\C\test\041004-01
>
> は
>
> 041004-01
>
> だけで表示できるとおもうのですが
> どうでしょうか?
>
> Rubyが不勉強で文字列操作もままならず
> 思いつきでいったのですが
> もしよろしければお教えください。
>
>
>
>
>
>
>
>
> > 福岡です。
> >
> > "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/
> >
> >
>
>
>