Dashboard refactoring:
* dashboard should be in dashboard controller not project index * projects index removed
This commit is contained in:
parent
9ef9c58f55
commit
edd81a79c5
15 changed files with 84 additions and 101 deletions
|
@ -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
|
2
app/views/dashboard/index.js.haml
Normal file
2
app/views/dashboard/index.js.haml
Normal file
|
@ -0,0 +1,2 @@
|
|||
:plain
|
||||
$(".projects .activities").append("#{escape_javascript(render(@events))}");
|
|
@ -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
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
:plain
|
||||
Pager.append(#{@projects.count}, "#{escape_javascript(render(:partial => 'projects/tile'))}");
|
|
@ -2,10 +2,6 @@
|
|||
|
||||
.entry
|
||||
.row
|
||||
-#.span2
|
||||
.back_link
|
||||
= link_to projects_path do
|
||||
← To projects list
|
||||
.span7
|
||||
.form-horizontal
|
||||
.input-prepend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue