プロジェクト

全般

プロフィール

Vote #67292

未完了

Show description of files in files tab

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
低め
担当者:
-
カテゴリ:
Files_52
対象バージョン:
-
開始日:
2010/05/19
期日:
進捗率:

0%

予定工数:
category_id:
52
version_id:
0
issue_org_id:
5557
author_id:
15728
assigned_to_id:
0
comments:
7
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

It would be great if, under the Files tab, Redmine showed the description entered when sending a file.

I know it's shown when the mouse hovers the file's title, but in my company we use descriptions a lot and it's not very comfortable to have to hover in every file. Sometimes, some files have even the same title.

I modified views/projects/list_files.rhtml to show the description, but maybe we could have some kind if configuration option to decide whether or not to show the description.


journals

On [[DevMeeting1]] we agreed on merging the Documents and Files sections. But this will probably only be part of Version version#20

Please add your modification as a patch here, so that the [[UX Team]] can use it during the redesign.
--------------------------------------------------------------------------------
Well, I must warn you that I have ANY skills in Ruby, I had never seen a line of code in Ruby before :)

The modification I made is very simple, I changed line 30.

Before:
<pre>
<td class="filename"><%= link_to_attachment file, :download => true, :title => file.description %></td>
</pre>

After:
<pre>

<td class="filename"><%= if file.description.empty?
link_to_attachment file, :download => true, :title => file.description
else
link_to_attachment file, :download => true, :title => file.description, :text => file.filename + \
" - " + file.description
end %></td>
</pre>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Resolved is meant for issues solved in trunk but not yet committed to the stable branch.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
The feature is quite simple (unfortunately I currently can't setup a contribution environment)

In @redmine/app/views/files/index.html.erb@ just add the following (works in version 3.3.0):

<pre><code class="erb">
# in the thead section add the following line after :field_filename
<%= sort_header_tag('filename', :caption => l(:field_description)) %>

# in the <th> section the colspan is extended to 7, because we have a new column

# now in the table row section of the table data, add the following line after the existing filename td
<td class="filename"><%= link_to_attachment file, :download => true, :text => file.description %></td>
</code></pre>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

duplicates,Closed,1205,Display file description in File listing

Admin Redmine さんが約2年前に更新

  • カテゴリFiles_52 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0