Dashboard refactoring:

* dashboard should be in dashboard controller not project index
* projects index removed
This commit is contained in:
randx 2012-06-12 23:13:42 +03:00
parent 9ef9c58f55
commit edd81a79c5
15 changed files with 84 additions and 101 deletions

View file

@ -34,6 +34,13 @@
→
.bottom= paginate @projects, :theme => "gitlab"
%hr
%div
%span.rss-icon
= link_to dashboard_path(:atom, { :private_token => current_user.private_token }) do
= image_tag "rss_ui.png", :title => "feed"
%strong News Feed
- else
%h3.nothing_here_message There are no projects you have access to.
%br

View file

@ -0,0 +1,2 @@
:plain
$(".projects .activities").append("#{escape_javascript(render(@events))}");

View file

@ -1,5 +1,5 @@
%nav.main_menu
= link_to "Home", root_path, :class => "home #{"current" if current_page?(projects_path) || current_page?(root_path)}", :title => "Home"
= link_to "Home", root_path, :class => "home #{"current" if current_page?(dashboard_path) || current_page?(root_path)}", :title => "Home"
= link_to dashboard_issues_path, :class => "#{"current" if current_page?(dashboard_issues_path)}", :id => "issues_slide" do
Issues
%span.count= current_user.assigned_issues.opened.count

View file

@ -1,2 +0,0 @@
:plain
Pager.append(#{@projects.count}, "#{escape_javascript(render(:partial => 'projects/tile'))}");

View file

@ -2,10 +2,6 @@
.entry
.row
-#.span2
.back_link
= link_to projects_path do
← To projects list
.span7
.form-horizontal
.input-prepend