Skip to content

Commit

Permalink
add shortname in projects index
Browse files Browse the repository at this point in the history
  • Loading branch information
SuPerior authored and SuPerior committed Jan 12, 2014
1 parent afb3410 commit 7d86966
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
Expand Up @@ -7,7 +7,7 @@ class ProjectsController < ApplicationController
end

def index
@projects = Project.select('id, name').order("shortname")
@projects = Project.select('id, name, shortname').order("shortname")
end

def show
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/index.html.haml
Expand Up @@ -9,4 +9,4 @@
%ul.projects
- @projects.each do |project|
%li.project
= link_to project.name, project_path(project)
= link_to project.name+" ("+project.shortname+")", project_path(project)

0 comments on commit 7d86966

Please sign in to comment.