Skip to content

Commit

Permalink
tidy up project list
Browse files Browse the repository at this point in the history
  • Loading branch information
cofiem committed Jul 15, 2016
1 parent d1ef11a commit e026294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/projects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def index

respond_to do |format|
format.html {
@projects = Access::ByPermission.projects(current_user).includes(:creator).references(:creator)
@projects = Access::ByPermission.projects(current_user).includes(:creator).references(:creator).order(:name)
}
format.json {
@projects, opts = Settings.api_response.response_advanced(
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
.caption
%h4{style: 'margin-top:0'}
%a{href: project_path(project)}= project.name
%p= truncate(project.description, length: 75)
%p= truncate(project.description, separator: ' ', length: 60)

- if @projects.empty?
%p
Expand Down

0 comments on commit e026294

Please sign in to comment.