Pagination and better perfomance for projects page.
This commit is contained in:
parent
60bf502bf1
commit
1d601616a3
6 changed files with 42 additions and 19 deletions
|
@ -1,6 +1,6 @@
|
|||
- if @projects.any?
|
||||
.row
|
||||
.span8
|
||||
.projects
|
||||
.activities.span8
|
||||
- if current_user.require_ssh_key?
|
||||
.alert.alert-error.padded
|
||||
%span
|
||||
|
@ -14,24 +14,24 @@
|
|||
- else
|
||||
.padded
|
||||
%strong.cgray Projects activity will be displayed here
|
||||
.span4.right
|
||||
%div.leftbar.ui-box
|
||||
.side
|
||||
.projects_box
|
||||
%h5
|
||||
Projects
|
||||
%small
|
||||
(#{@projects.count})
|
||||
(#{@projects.total_count})
|
||||
- if current_user.can_create_project?
|
||||
%span.right
|
||||
= link_to new_project_path, :class => "btn very_small info" do
|
||||
New Project
|
||||
.content_list
|
||||
- @projects.each do |project|
|
||||
= link_to project_path(project), :class => dom_class(project) do
|
||||
%h4
|
||||
%span.ico.project
|
||||
= truncate(project.name, :length => 25)
|
||||
%span.right
|
||||
→
|
||||
- @projects.each do |project|
|
||||
= link_to project_path(project), :class => dom_class(project) do
|
||||
%h4
|
||||
%span.ico.project
|
||||
= truncate(project.name, :length => 25)
|
||||
%span.right
|
||||
→
|
||||
.bottom= paginate @projects, :theme => "gitlab"
|
||||
|
||||
- else
|
||||
%h3 Nothing here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue