added token to proxy exercise view, also added locale

This commit is contained in:
Ralf Teusner
2017-09-27 11:59:59 +02:00
parent dad1c2f1a3
commit af67208fd3
4 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,7 @@ h1 = ProxyExercise.model_name.human(count: 2)
thead
tr
th = sort_link(@search, :title, t('activerecord.attributes.proxy_exercise.title'))
th = "Token"
th = t('activerecord.attributes.exercise.token')
th = t('activerecord.attributes.proxy_exercise.files_count')
th colspan=6 = t('shared.actions')
tbody

View File

@ -10,6 +10,7 @@ h1
= row(label: 'exercise.title', value: @proxy_exercise.title)
= row(label: 'proxy_exercise.files_count', value: @exercises.count)
= row(label: 'exercise.description', value: @proxy_exercise.description)
= row(label: 'exercise.token', value: @proxy_exercise.token)
h3 Exercises
.table-responsive
table.table

View File

@ -42,6 +42,7 @@ de:
allow_file_creation: "Dateierstellung erlauben"
difficulty: Schwierigkeitsgrad
worktime: "vermutete Arbeitszeit in Minuten"
token: "Aufgaben-Token"
proxy_exercise:
title: Title
files_count: Anzahl der Aufgaben

View File

@ -42,6 +42,7 @@ en:
allow_file_creation: "Allow file creation"
difficulty: Difficulty
worktime: "Expected worktime in minutes"
token: "Exercise Token"
proxy_exercise:
title: Title
files_count: Exercises Count