We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e5ecd5 commit a5f537eCopy full SHA for a5f537e
1 file changed
app/views/questions/index.html.slim
@@ -28,10 +28,10 @@ h1
28
td.vert-align
29
= truncate question.content
30
31
- = if question.starter_file then link_to 'View Starter File', starter_file_question_path(question.id) else ''
+ = question.starter_file ? link_to('View', starter_file_question_path(question)) : ''
32
- if current_user && current_user.admin
33
34
- = link_to 'View Test File', test_file_question_path(question.id)
+ = link_to 'View', test_file_question_path(question.id)
35
36
= link_to 'Edit', edit_question_path(question)
37
0 commit comments