Skip to content

Commit

Permalink
Merge pull request #195 from sparc-request/jl-adding_version_to_docum…
Browse files Browse the repository at this point in the history
…ents_table

Added new version column to displayed documents table.
  • Loading branch information
jleonardw9 committed Nov 6, 2015
2 parents 392de83 + 3f52af5 commit f2ff216
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/service_requests/_document_list.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
%th= t("documents.headers.title")
- if not review
%th= t("documents.headers.actions")
%th= t('documents.headers.version')

- @service_request.documents.each do |document|
- next unless @sub_service_request.nil? or @sub_service_request.documents.include? document
Expand All @@ -45,6 +46,7 @@
%td
= link_to t("documents.edit_button"), "/service_requests/#{@service_request.id}/edit_document/#{document.id}", :remote => true, :class => 'document_edit blue-button'
= link_to t("documents.delete_button"), "/service_requests/#{@service_request.id}/delete_document/#{document.id}", :remote => true, :class => 'document_delete blue-button'
%td= document.updated_at.strftime("%m/%d/%Y at %I:%M%p")
- else
- if review # let's show the table with the no documents text
%table.document-table
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ en:
institution: "Institution/Provider/Program/Core"
title: "Title"
actions: "Actions"
versions: "Version"
uploads: "Document Uploads"
uploaded: "Uploaded"
upload_button: "Upload"
Expand Down

0 comments on commit f2ff216

Please sign in to comment.