Patch #2457
openDifferent style of new issue/timelog interface
0%
Description
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.
- 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 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.
Files
Related issues
Updated by Jean-Philippe Lang almost 16 years ago
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.
Updated by Mischa The Evil over 15 years ago
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 plugin list...
Updated by Mischa The Evil over 15 years ago
- Status changed from New to 7
- Assignee set to Mischa The Evil
Updated by D W about 15 years ago
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!
Updated by Toshi MARUYAMA about 8 years ago
- Status changed from New to Needs feedback
What is status of this issue?
All issues on description are closed.