Feature #12032
closedCollapsible Sidebar
0%
Description
We frequently have meetings in our conference room where we refer to Redmine for information about projects and issues for our organization. We have added a very small amount of JavaScript and CSS to Redmine to allow us to collapse the sidebar so that we have more screen space when viewing found it very useful to be able to collapse the sidebar so that we have more horizontal space on the screen. The is especially useful since we generally increase the font size in the browser.
Files
Related issues
Updated by Terence Mill about 12 years ago
Please upload the patches.
+ for the feature.
Updated by ana gonzalez about 12 years ago
- Assignee set to Jonas De Meulenaere
- % Done changed from 0 to 100
Brandon Liles wrote:
We frequently have meetings in our conference room where we refer to Redmine for information about projects and issues for our organization. We have added a very small amount of JavaScript and CSS to Redmine to allow us to collapse the sidebar so that we have more screen space when viewing found it very useful to be able to collapse the sidebar so that we have more horizontal space on the screen. The is especially useful since we generally increase the font size in the browser.
Updated by Toshi MARUYAMA about 12 years ago
- Assignee deleted (
Jonas De Meulenaere) - % Done changed from 100 to 0
Updated by Wolfgang Neudorfer about 12 years ago
Terence Mill wrote:
Please upload the patches.
+ for the feature.
I would also love to see the patch.
Updated by Brandon Liles about 12 years ago
- File collapsible-sidebar.diff collapsible-sidebar.diff added
Sorry I was slow to provide the patch, diff is attached. The only other thing you need is to apply a little bit of CSS in your theme and have images for the expand/collapse control:
.collapsed #sidebar-content, .collapsed #hide-side-bar, .expanded #show-side-bar, .collapsed #watchers { display: none; } .expanded #sidebar-content, .expanded #hide-side-bar, .collapsed #show-side-bar, .expanded #watchers { display: block; }
Updated by Jan Niggemann (redmine.org team member) almost 12 years ago
+1 for trunk
Updated by Christian Ziegelt almost 12 years ago
Strange - I thought this diff would help me in hiding the sidebar ans saving space.
If I apply the patch (I did it by hand - since I did not find the way to do it automatically) and edit the css file, I will end up with a sidebar which is collapsed from down -> up.
What I thought this was good for is: saving space on the left hand side for tickets.
How to I control that the DIV is collapsed from LEFT to RRIGHT ?
Here is my DIFFed file
<div id="sidebarWrapper" class="expanded"> <p id="hide-side-bar"><a onclick="document.getElementById('sidebarWrapper').className='collapsed';document.getElementById('sidebar').className='collapsed';"><img src="/images/sidebar_collapse.jpeg" /></a></p> <p id="show-side-bar"><a onclick="document.getElementById('sidebarWrapper').className='expanded';document.getElementById('sidebar').className='expanded';"><img src="/images/sidebar_expand.png" /></a></p> <div id="sidebar-content" > <h3><%= l(:label_issue_plural) %></h3> <%= link_to l(:label_issue_view_all), _project_issues_path(@project, :set_filter => 1) %><br /> <% if @project %> <%= link_to l(:field_summary), project_issues_report_path(@project) %><br /> <% end %> <%= call_hook(:view_issues_sidebar_issues_bottom) %> <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %> <%= link_to l(:label_calendar), _project_calendar_path(@project) %><br /> <% end %> <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %> <%= link_to l(:label_gantt), _project_gantt_path(@project) %><br /> <% end %> <%= call_hook(:view_issues_sidebar_planning_bottom) %> <%= render_sidebar_queries %> <%= call_hook(:view_issues_sidebar_queries_bottom) %> </div> </div>
Updated by Brandon Liles almost 12 years ago
Christian,
Your theme has to use a flexible layout, the content div needs to set width=auto, overflow=auto in the CSS in order for the collapse to work correctly:
This is what the critical section looks like in my hack of the A1 theme:
div#content { width: auto; overflow: auto; } div#main.nosidebar div#content { width: auto; } #sidebar { width: auto;
Updated by Daniel Felix almost 12 years ago
- Tracker changed from Feature to Patch
- Target version set to 2.4.0
Updated by Ivan Cenov almost 12 years ago
There is also a plugin for hiding sidebar: https://github.com/ries-tech/sidebar_hide
Updated by Dipan Mehta almost 12 years ago
As I stated in #1294
I am using the above mentioned plugin
Many themes are simply not compatible with the the plug-in. Unfortunately, by digging up you realize this is is neither a plug-in's own issue as such because many themes have their own peculiar problems (and default theme works) on the other hand - most themes works perfectly except this side bar features!
This feature should be core, as it affects UI for all the modules, layouts. Usually, if plugins being maintained by others cann't be controlled but whatever is solved once in Redmine core is mostly likely to be supported for the rest. Hence, I think this should be part of core.
Updated by Jean-Philippe Lang about 11 years ago
- Target version changed from 2.4.0 to Candidate for next major release
2.4 feature freeze
Updated by Hans Bangkok almost 11 years ago
yes this really should be core, so many important 3rd-party plugins have fallen by the wayside
Updated by Jérôme BATAILLE over 9 years ago
Hi, a plugin was developped inside my company.
Still working with current version.
Updated by Toshi MARUYAMA almost 9 years ago
- Related to Feature #21808: Make the Sidebar collapsible, stateful added
Updated by Marius BĂLTEANU over 5 years ago
- Tracker changed from Patch to Feature
- Status changed from New to Closed
- Target version deleted (
Candidate for next major release) - Resolution set to Duplicate
Closing this in favour of #21808 which has multiple patches and a feedback from Jean-Philippe.
Updated by Marius BĂLTEANU over 5 years ago
- Related to deleted (Feature #21808: Make the Sidebar collapsible, stateful)
Updated by Marius BĂLTEANU over 5 years ago
- Is duplicate of Feature #21808: Make the Sidebar collapsible, stateful added