Skip to content

Commit

Permalink
We should not use raw
Browse files Browse the repository at this point in the history
  • Loading branch information
eisuke committed Nov 16, 2016
1 parent 69ef1ce commit 37182b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/views/kuroko2/job_definitions/_list.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
=link_to tag.name, root_path('tag': [tag.name]), class: 'label label-default spacer-right-3'
= first_line(definition.description)
td
= link_to raw('<i class="fa fa-chevron-right"></i> <span class="small">View Details</span>'), definition, class: 'btn btn-sm btn-default'
= link_to definition, class: 'btn btn-sm btn-default' do
i class="fa fa-chevron-right"
| &nbsp;
span class="small" View Details

- else
.text-muted.well.well-sm.no-shadow There are no favorite job definitions.
6 changes: 5 additions & 1 deletion app/views/kuroko2/job_definitions/_search_results.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@
=link_to tag.name, job_definitions_path('tag': [tag.name]), class: 'label label-default spacer-right-3'
= first_line(definition.description)
td
= link_to raw('<i class="fa fa-chevron-right"></i> <span class="small">View Details</span>'), definition, class: 'btn btn-sm btn-default'
= link_to definition, class: 'btn btn-sm btn-default' do
i class="fa fa-chevron-right"
| &nbsp;
span class="small" View Details

- else
- if params[:q].present?
.text-muted.well.well-sm.no-shadow No results found for the query.
Expand Down

0 comments on commit 37182b6

Please sign in to comment.