Feature #2585

Add Modules to hide/display Overview, Activity, Roadmap

Added by Ben Blanco over 10 years ago. Updated over 1 year ago.

Status:NewStart date:2009-01-26
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Projects
Target version:-
Resolution:

Description

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..).

Project_Settings_Modules.png (22.7 KB) Ben Blanco, 2009-01-26 12:15


Related issues

Related to Redmine - Defect #27902: Overview page is very slow for private projects with larg... New
Duplicated by Redmine - Feature #9930: Removable Overview / Activity menus Closed
Duplicated by Redmine - Feature #4955: How to simplify the interface as much as possible Closed 2010-03-01

History

#1 Updated by Ben Blanco over 10 years ago

Screenshot of currently available Modules:

#2 Updated by colin moock over 10 years ago

+1

#3 Updated by Sami Isomäki about 10 years ago

+1

#4 Updated by Ali Entezari over 9 years ago

+1

#5 Updated by Ali Entezari over 9 years ago

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

#6 Updated by Ali Entezari over 9 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#7 Updated by Jean-Philippe Lang over 9 years ago

  • Status changed from Resolved to New
  • % Done changed from 100 to 0

This is not resolved. Hiding the links won't disable the views.

#8 Updated by Davide Setti over 8 years ago

+1

#10 Updated by Joshua Villagomez over 8 years ago

I too would like to see this feature added.

#11 Updated by Bernd Vogt almost 8 years ago

+1

#12 Updated by Aidin Abedi almost 8 years ago

+1

#13 Updated by Aidin Abedi almost 8 years ago

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.

#14 Updated by Terence Mill almost 8 years ago

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

#15 Updated by Line Bourdages over 7 years ago

+1

#16 Updated by Terence Mill over 7 years ago

+1

#17 Updated by llorbinshane aifseng over 7 years ago

  • Assignee set to Maxim Krušina

#18 Updated by Etienne Massip over 7 years ago

  • Assignee deleted (Maxim Krušina)

#19 Updated by Dimitri Sapunou almost 7 years ago

+1

#20 Updated by Arthur Zalevsky over 6 years ago

Same here. Is it possible to implement this feature in Redmine 2.*?

#21 Updated by Pawel Orzechowski over 6 years ago

+1

#23 Updated by Bishoy Medhat almost 6 years ago

+1

#24 Updated by Daniel Felix almost 6 years ago

Another idea could be to define permissions to disable this items for certain usergroups.

#25 Updated by Muditha Jayawardana about 5 years ago

Is there any plugging or a patch to do this.
hide overview and road map module for specific role.

#26 Updated by Vinicius Ferreira about 5 years ago

+1

#27 Updated by F Abu-Nimeh about 5 years ago

+1

#28 Updated by Daniel Felix about 5 years ago

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?

#29 Updated by Daniel Felix about 5 years ago

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"?

#32 Updated by Go MAEDA over 4 years ago

  • Duplicated by Feature #4955: How to simplify the interface as much as possible added

#33 Updated by David Nielsen over 4 years ago

+1

#34 Updated by Cédric Brancourt over 4 years ago

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

It can be used in plugins:

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

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 :

# 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


And you're done.

#35 Updated by Cédric Brancourt over 4 years ago

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

# 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

# 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

#36 Updated by 4wk_ _ over 4 years ago

Really need this feature without plugin (cause it hide it for everyone / for every project) : just another checkbox on the admin panel !
+1

#37 Updated by Subash Manickam almost 4 years ago

Yes I am looking the same kind of functionality for Clients, So giving a checkbox "Show Overview Tab" on User roles would be great

#39 Updated by Mathieu Hicauber almost 4 years ago

+1

#40 Updated by Yaroslav Lavitskas over 3 years ago

+1

#41 Updated by Filip Sabo over 3 years ago

+1

#42 Updated by Donald Martin about 3 years ago

+1

#43 Updated by Donald Martin about 3 years ago

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

#44 Updated by Leszek Koltunski about 3 years ago

+1. Come on guys - can we have this implemented?

#45 Updated by Robert Redl almost 3 years ago

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?

#46 Updated by George Notaras almost 3 years ago

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 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:

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'

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.

#47 Updated by luigifab ! over 2 years ago

+10 :)

#48 Updated by Jules Bowie almost 2 years ago

+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)

#49 Updated by simon butcher over 1 year ago

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.

#50 Updated by Toshi MARUYAMA over 1 year ago

  • Related to Defect #27902: Overview page is very slow for private projects with large number of members added

Also available in: Atom PDF