Skip to content

Commit a5f537e

Browse files
committed
remove redundant text
1 parent 0e5ecd5 commit a5f537e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/views/questions/index.html.slim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ h1
2828
td.vert-align
2929
= truncate question.content
3030
td.vert-align
31-
= if question.starter_file then link_to 'View Starter File', starter_file_question_path(question.id) else ''
31+
= question.starter_file ? link_to('View', starter_file_question_path(question)) : ''
3232
- if current_user && current_user.admin
3333
td.vert-align
34-
= link_to 'View Test File', test_file_question_path(question.id)
34+
= link_to 'View', test_file_question_path(question.id)
3535
td.vert-align
3636
= link_to 'Edit', edit_question_path(question)
3737
td.vert-align

0 commit comments

Comments
 (0)