プロジェクト

全般

プロフィール

Vote #64392

未完了

Different style of new issue/timelog interface

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

ステータス:
Needs feedback
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
-
開始日:
2009/01/07
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
0
issue_org_id:
2457
author_id:
1565
assigned_to_id:
1565
comments:
6
status_id:
10
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Needs feedback]

説明

For my own Redmine instance I modified the interface regarding the "entry-links" for new issues and new timelogs a long time ago. I used several other patches and sources to come to the final result. I always wanted to create a configurable patch for others who might be interested, but never came to it. Now, here it finally is...

The urge for the modifications came from the fact that I needed to have cross-project, direct-access to the new-links for both the issues and the timelogs (the only two things which a user enters frequently).

I added/modified the following things:

  • Added setting @main_new_links_enabled@ which enables the changes from this patch (defaults to 0/false) and at the same time removes the default "New issue"-tab on the project-menu
  • Added new-issue link right above the main issuelist (view: issues/index) which get rendered @if_authorized@
  • Added JavaScripted top-menu items for new issue and new timelog (only rendered when the visitor is a logged-in user && the current logged-in user has at least one membership (role)) which opens dynamic-menu's (based on the project-selector) showing the projects for which the current logged-in user has a role.

As mentioned earlier I based my modifications on some other patches and contributions:

  • Patch #1022 (Patch for #1003 [Allow "New Issue" from anywhere]) by Rocco Stanzione; This was my starting point for this patch. I've refactored the CSS to better fit the current trunk's default theme. I've also modified the conditions under which the links are displayed.
  • Patch #249 (Jump-in for 'add time') by Michael Pirogov; This patch made me realize I wanted the new timelog-liks integrated just as the new issue-links. This also gave me the insights about how this could be merged with patch #1022 to implement my needs for the new timelog-links.
  • "Revision 905":http://forge.typo3.org/repositories/diff/team-forge?rev=905 of Typo3's Redmine-fork by Sebastian Kurfürst; This changeset gave me the idea and basic-code for adding the new issue-link also in the main issuelist and for removing the new-issue tab.

Like stated before I've added a setting for the modifications I've made. This means that with the patch applied (but no configuration) the default behaviour/UI isn't modified. The modifications specifically needs to be configured to be used.

This patch is not specifically shared/posted to get integrated into the Redmine core since I think it is more a personal request to have these changes integrated rather then that it is a community one.

Hope someone can appreciate the patch. Just to note: I've kept the code as seperated as possible (ie duplicated lots of it for both the JavaScripted menu's, instead for combining it at a higher-level). This will allow more easy extraction of parts of this patch.


journals

> This patch is not specifically shared/posted to get integrated into the Redmine core since I think it is more a personal request to have these changes integrated rather then that it is a community one.

I agree. Having a user-customizable toolbar one day would be nice.
For now, I've quickly turned your patch into a plugin so that people can try it without patching the app. Just unzip in vendor/plugins.

Note that permissions should be checked when rendering the project list in the menu items: some member may not be able to log time or add an issue, thus they would get a 403 when clicking on the project in the drop-down menu. I did not change this behaviour in the plugin.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> > This patch is not specifically shared/posted to get integrated into the Redmine core since I think it is more a personal request to have these changes integrated rather then that it is a community one.
>
> I agree. Having a user-customizable toolbar one day would be nice.
> For now, I've quickly turned your patch into a plugin so that people can try it without patching the app. Just unzip in vendor/plugins.

Great! This seems pretty educational for me seeing this patch being "pluginized"... Thanks for that... ;)

Jean-Philippe Lang wrote:
> Note that permissions should be checked when rendering the project list in the menu items: some member may not be able to log time or add an issue, thus they would get a 403 when clicking on the project in the drop-down menu. I did not change this behaviour in the plugin.

Indeed. Will see if I can update your "pluginisation" of the patch to check the correct permissions. If completed I'll post the plugin to the [[Plugins#Plugin-list|plugin list]]...

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

--------------------------------------------------------------------------------
I apologize for being a choosy beggar, but just wondered if there's any plan to update this plug-in for the new dev trunk? Or to incorporate it into the core later? I for one could really use this to improve ease-of-use for casual (client) users to quickly be able to get to the New Issue page, but it breaks my current 0.8.5-Dev install.

I put my own "New Ticket" button on the Project home page sidebar but ran into trouble doing that on the Issues page because that page can also be used to show *all* issues for a user (not just one project) so my button's relative URL to the issues\new page doesn't work in that case.

Thanks!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
What is status of this issue?
All issues on description are closed.
--------------------------------------------------------------------------------


related_issues

relates,Closed,1022,Patch for #1003
relates,Closed,249,Jump-in for 'add time'
relates,Closed,1003,Allow "New Issue" from anywhere

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

  • カテゴリUI_10 にセット

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

いいね!0
いいね!0