プロジェクト

全般

プロフィール

Vote #64511

未完了

Add Modules to hide/display Overview, Activity, Roadmap

Admin Redmine さんが3ヶ月前に追加. 3ヶ月前に更新.

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

0%

予定工数:
category_id:
11
version_id:
0
issue_org_id:
2585
author_id:
2240
assigned_to_id:
0
comments:
53
status_id:
1
tracker_id:
2
plus1:
27
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

When opening Projects to clients, in some cases one may not want to display Activity or Overview. The Project Settings' Modules covers most of a Project's tabs, but not:

  • Overview
  • Activity
  • Roadmap

Could tick boxes be added here, so that Admins can 100% customize the look & feel of each project according to its requirements (confidentiality, etc..).


workaround

Use view customize plugin (require scripting)


journals

Screenshot of currently available Modules:

!Project_Settings_Modules.png!

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
To Hide Activity Tab, remove the following line from redmine\lib\redmine.rb
menu.push :help, Redmine::Info.help_url, :last => true

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

--------------------------------------------------------------------------------
This is not resolved. Hiding the links won't disable the views.
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
I too would like to see this feature added.
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
I just tried a this module plugin for Activity with my redmine 1.2.1 and it works! https://github.com/finnlabs/redmine_activity_module

I then tried to copy it and rewrite it for Roadmap but the copy doesn't play nice with the original so I can't make them work simultaneously.
--------------------------------------------------------------------------------
There is the plugin redmine blocks which can show hide elemnts on overview page.
The Roadmap shall be sparated from issue module in core
+1

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
Same here. Is it possible to implement this feature in Redmine 2.*?
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
Another idea could be to define permissions to disable this items for certain usergroups.
--------------------------------------------------------------------------------
Is there any plugging or a patch to do this.
_hide overview and road map module for specific role._
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
Hi there,

if I'm not too wrong, this could already be done. If you remove the rights to see the activities and so on for a special role, the user won't see the menu item, doesn't it?
--------------------------------------------------------------------------------
Yes I'm wrong. The Activity is displayed at all. But the Gantt and the roadmap should be hidden if there were insufficient rights. Maybe this could be solved via a simple additional right "can see activity"?
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+∞
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
Well I can provide easy instructions to disable some menu items.

It can be used in plugins:

<pre><code class="ruby">
Redmine::MenuManager.map(:project_menu).delete(:activity)
</code></pre>

Redmine is easy to extend and customize through plugins avoid temptation to edit it's files and write plugin instead ! This way you can follow versions.

A plugin that disable the activity tab is a single file plugin :

<pre><code class="ruby">
# plugins/disable_activity/init.rb

Redmine::Plugin.register :disable_activity do

name 'Disable Activity'
author 'Cedric Brancourt'
version '0.0.1'
description 'Disable activity tab'

Redmine::MenuManager.map(:project_menu).delete(:activity)
end
</code>
</pre>
And you're done.

--------------------------------------------------------------------------------
By the way if you wish to forbid access to activities this can be a 2 files plugin :

<pre>
<code class="ruby">
# plugins/disable_activity/init.rb

require 'activities_controller_override'

Redmine::Plugin.register :disable_activity do

name 'Disable Activity'
author 'Cedric Brancourt'
version '0.0.1'
description 'Disable activity tab'

Redmine::MenuManager.map(:project_menu).delete(:activity)

permission :view_activities, custom_activities: :index
ActivitiesController.send(:include, ActivitiesControllerOverride)

end
</code>
</pre>

<pre>
<code class="ruby">
# plugins/disable_activities/lib/activities_controller_override

module ActivitiesControllerOverride
def self.included(activity_controller)
activity_controller.send(:include, InstanceMethods)
activity_controller.class_eval do
alias_method_chain :index, :custom_authorize
end
end

module InstanceMethods
def index_with_custom_authorize
authorize :custom_activities, :index, false
index_without_custom_authorize
end
end

end
</code>
</pre>

--------------------------------------------------------------------------------
Really need this feature without plugin (cause it hide it for everyone / for every project) : just another checkbox on the admin panel !
+1
--------------------------------------------------------------------------------
Yes I am looking the same kind of functionality for Clients, So giving a checkbox "Show Overview Tab" on User roles would be great

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
Otherwise if it can't be an option per project to remove overview I'd like to be able to change the default page per project. If you go to a project, on some I'd like to go straight to issues on others I'd like to go straight to Documents - etc etc
--------------------------------------------------------------------------------
+1. Come on guys - can we have this implemented?
--------------------------------------------------------------------------------
Cédric Brancourt wrote:
> Well I can provide easy instructions to disable some menu items.
>
> It can be used in plugins:
>
> [...]
>
> Redmine is easy to extend and customize through plugins avoid temptation to edit it's files and write plugin instead ! This way you can follow versions.
>
> A plugin that disable the activity tab is a single file plugin :
>
> [...]
> And you're done.

This method works very well for the activity page, but how to remove the Overview?
--------------------------------------------------------------------------------
I needed to minimize the amount of public web pages generated by Redmine so as to reduce the load on the server when the application is hit by bots. The goal is to keep only the overview/wiki/files tabs publicly available per project, since they are the only ones that are actually used.

I did a quick test with the plugin code "posted above":http://www.redmine.org/issues/2585#note-35 and it seems to work. The _Activity_ page redirects to the login page. However, there are still some issues with the activity Atom feeds:

1) The feed for the _overall activity_ returns a 500 error. The following errors are recorded in the log:

<pre>
AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".):
app/controllers/application_controller.rb:526:in `render_feed'
app/controllers/activities_controller.rb:71:in `block (2 levels) in index'
app/controllers/activities_controller.rb:59:in `index'
plugins/disable_activity/lib/activities_controller_override.rb:13:in `index_with_custom_authorize'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".):
app/controllers/application_controller.rb:526:in `render_feed'
app/controllers/activities_controller.rb:71:in `block (2 levels) in index'
app/controllers/activities_controller.rb:59:in `index'
plugins/disable_activity/lib/activities_controller_override.rb:13:in `index_with_custom_authorize'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
</pre>

2) The activity feed of each individual project continues to work as if the Activity page was publicly available.

In my opinion the expected behavior regarding both types of activity feeds (overall & per project) would be to redirect to the login screen, like it happens with the activity pages.

Any ideas about how to address the above issues are very welcome.

Update: +1 for the implementation of this feature in the Redmine core.
--------------------------------------------------------------------------------
+10 :)
--------------------------------------------------------------------------------
+1

- want to disable the overview and activity for a 'read-only' project that has a wiki and news modules. I don't want users to see other members' names (except for those with edit rights)
--------------------------------------------------------------------------------
for private projects, the users are shown on the overview page as members. when you have 3000+ members this slows everything down hideously when viewing overview page. an option to hide overview would be good.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------


related_issues

relates,New,27902,Overview page is very slow for private projects with large number of members
duplicates,Closed,9930,Removable Overview / Activity menus
duplicates,Closed,4955,How to simplify the interface as much as possible
duplicates,Closed,34881,Activity page block

Admin Redmine さんが3ヶ月前に更新

  • カテゴリProjects_11 にセット

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

いいね!0
いいね!0