Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needed to wrap document title text. #206

Merged
merged 2 commits into from
Nov 11, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -2324,6 +2324,10 @@ li:not(.ui-tabs-active) #calendar_tab:hover {
text-align: left;
}

.document-title {
word-break: break-all;
}

.total_cell {
font-weight: bold !important;
background-color: #CCCCCC;
Expand Down
8 changes: 5 additions & 3 deletions app/views/service_requests/_document_list.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
%tr.header{:class => provider_css}
%th= t("documents.headers.institution")
%th= t("documents.headers.type")
%th= t("documents.headers.title")
%th{style: 'width:150px'}= t("documents.headers.title")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline style, really?

- if not review
%th= t("documents.headers.actions")
%th{style: 'width:63px'}= t("documents.headers.actions")
%th= t('documents.headers.version')

- @service_request.documents.each do |document|
Expand All @@ -41,10 +41,12 @@
%br
%br
%td= document.display_document_type
%td= link_to document.document_file_name, document.document.url
%td.document-title= link_to document.document_file_name, document.document.url
- if not review
%td
= link_to t("documents.edit_button"), "/service_requests/#{@service_request.id}/edit_document/#{document.id}", :remote => true, :class => 'document_edit blue-button'
%br{style: 'margin-top:5px'}
%br
= 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
Expand Down