プロジェクト

全般

プロフィール

Vote #73452

未完了

Adding icons for different trackers

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
0
issue_org_id:
13297
author_id:
6698
assigned_to_id:
0
comments:
19
status_id:
1
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

It would be great to have set of icons that can be associated with the tracker, as in Jira. Then, instead of the name of the tracker could display its icon and thus save space in the task list, such as additional columns.


journals

Something like this. In addition, the icons can be added to the "Priority" and "Status".

!jira-icons.png!
--------------------------------------------------------------------------------
That should IMHO be made using a theme...
--------------------------------------------------------------------------------
Why? Two different users can use two different themes, but they both can want to have the same icons. And as in the case of theme, you can associate a specific tracker with a certain icon?
--------------------------------------------------------------------------------
I also would'nt insert a icon. But if the theme is going to set a icon we need a class for the tracker. The status and the priority are already available as classes like <code>status-1</code> or <code>priority-2</code>

So my request: Please, add a class for the tracker.
--------------------------------------------------------------------------------
It would be really useful ! It's much easier to see the status directly with icons !

I think it must be implements in theme core, not in special theme.
It would be a pain to make a new set of icons for new theme !

There's a lot of free set icons like :
- http://p.yusukekamiyamane.com/
- http://www.famfamfam.com/

Of with fonts :
- http://fortawesome.github.com/Font-Awesome/

Wouldn't be so hard to add extra CSS class and set of icons associated ! :)
--------------------------------------------------------------------------------
I can provide unique icons for Redmine!
--------------------------------------------------------------------------------
We keep the visual aspects (i.e. the representation of the information) apart so people can theme redmine to their liking.
IMHO this issue is about theme development and not about redmine core...

Pavel Lautsevich wrote:
> Why? Two different users can use two different themes
Since when?

--------------------------------------------------------------------------------
Related with #13309. (Add tracker class)
--------------------------------------------------------------------------------
Ok take out icons in the templates. How then can a custom tracker assign custom icon without editing the CSS?
--------------------------------------------------------------------------------
The easiest way to insert the tracker icons is to edit the application.css from your theme. Furthermore you insert some Javascript to skip the tracker text value. You need Remine 2.3 or higher because this adaptation depends on #13309.

public/themes/YOUR_THEME/javascript/theme.js
<pre><code class="Javascript">
function addTrackerIcons() {
$('tr.issue td.tracker').empty();
}

$(document).ready(addTrackerIcons);
</code></pre>

public/themes/YOUR_THEME/stylesheets/application.css
<pre><code class="CSS">
table.issues tr.tracker-1 td.tracker {
background: url("../images/YOUR_TRACKER_IMAGE_01.png") no-repeat scroll 50% 0 transparent;
}

table.issues tr.tracker-2 td.tracker {
background: url("../images/YOUR_TRACKER_IMAGE_02.png") no-repeat scroll 50% 0 transparent;
}

/* Add further tracker icons...*/
</code></pre>

If you want to *keep* the tracker text modify the css like this only:

public/themes/YOUR_THEME/stylesheets/application.css
<pre><code class="CSS">
table.issues td.tracker {
padding-left: 20px;
}

table.issues tr.tracker-1 td.tracker {
background: url("../images/YOUR_TRACKER_IMAGE_01.png") no-repeat scroll 0 0 transparent;
}

table.issues tr.tracker-2 td.tracker {
background: url("../images/YOUR_TRACKER_IMAGE_02.png") no-repeat scroll 0 0 transparent;
}

/* Add further tracker icons...*/
</code></pre>

Don't forget to add your tracker images to public/themes/YOUR_THEME/images/.

--------------------------------------------------------------------------------
Guys you talk about geeks way, I talk about best user experience way.
--------------------------------------------------------------------------------
This issue duplicates #6614, but I'm closing #6614 as this one has more details.
--------------------------------------------------------------------------------
I'll provide a patch for this as soon as possible. :-)
--------------------------------------------------------------------------------
This is a nice fature and would to be able to define a icon per tracker which symbolizes the issue in the issue views, roadmap and wiki macro. It could be used additional or as replacement in any view for a quick visual understanding which issues are of what tracker type. This bitmaps shall be default but configurable, as vor addtional trackers, nobdoy knows which icons could fit best as the creator or admin of the instance.
--------------------------------------------------------------------------------
In the first patch I just provide icons and some colourcodingfs for the issue list and roadmap list.

Maybe I could extend this later.
--------------------------------------------------------------------------------
+1 to Terence!

Daniel, I'll be waiting impatiently results!
--------------------------------------------------------------------------------
If you need some help to test and give feedback, just let me know.
--------------------------------------------------------------------------------
I've provided a hardcoded patch for this with some other things together in #13747. This won't be dynamicly. I'll work on another addition, which lets the user define these by himself on top of the patch from #13747.

But maybe for the start, this could be helpful.

Best regards,
Daniel
--------------------------------------------------------------------------------
Hello all.
Please, try my little plugin for these requirements
https://github.com/JohnBat26/redmine_issue_icons
--------------------------------------------------------------------------------


related_issues

relates,Closed,13309,Add "tracker-[id]" CSS class to issues
relates,Reopened,4967,Issues colors
relates,New,13747,Issue Colors Patch for #4967
duplicates,Closed,6614,icons per tracker for tickets symbol additional or as replacement for ticket type text

Admin Redmine さんがほぼ4年前に更新

  • カテゴリUI_10 にセット

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

いいね!0
いいね!0