Implement show action
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
class UserExerciseFeedbacksController < ApplicationController
|
class UserExerciseFeedbacksController < ApplicationController
|
||||||
include CommonBehavior
|
include CommonBehavior
|
||||||
|
|
||||||
before_action :set_user_exercise_feedback, only: [:show, :edit, :update]
|
before_action :set_user_exercise_feedback, only: [:edit, :update]
|
||||||
before_action :set_user_exercise_feedback_by_id, only: [:destroy]
|
before_action :set_user_exercise_feedback_by_id, only: [:show, :destroy]
|
||||||
|
|
||||||
def comment_presets
|
def comment_presets
|
||||||
[[0,t('user_exercise_feedback.difficulty_easy')],
|
[[0,t('user_exercise_feedback.difficulty_easy')],
|
||||||
|
7
app/views/user_exercise_feedbacks/show.html.slim
Normal file
7
app/views/user_exercise_feedbacks/show.html.slim
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
h2 = @uef
|
||||||
|
|
||||||
|
= row(label: 'activerecord.attributes.user_exercise_feedback.exercise', value: link_to(@uef.exercise.title, @uef.exercise))
|
||||||
|
= row(label: 'user_exercise_feedback.user', value: @uef.user)
|
||||||
|
= row(label: 'activerecord.attributes.user_exercise_feedback.feedback_text', value: @uef.feedback_text)
|
||||||
|
= row(label: 'user_exercise_feedback.difficulty', value: @uef.difficulty)
|
||||||
|
= row(label: 'user_exercise_feedback.working_time', value: @uef.user_estimated_worktime)
|
@ -119,6 +119,7 @@ de:
|
|||||||
user_exercise_feedback:
|
user_exercise_feedback:
|
||||||
user: "Autor"
|
user: "Autor"
|
||||||
exercise: "Aufgabe"
|
exercise: "Aufgabe"
|
||||||
|
feedback_text: "Feedback Text"
|
||||||
models:
|
models:
|
||||||
code_harbor_link:
|
code_harbor_link:
|
||||||
one: CodeHarbor-Link
|
one: CodeHarbor-Link
|
||||||
|
@ -119,6 +119,7 @@ en:
|
|||||||
user_exercise_feedback:
|
user_exercise_feedback:
|
||||||
user: "Author"
|
user: "Author"
|
||||||
exercise: "Exercise"
|
exercise: "Exercise"
|
||||||
|
feedback_text: "Feedback Text"
|
||||||
models:
|
models:
|
||||||
code_harbor_link:
|
code_harbor_link:
|
||||||
one: CodeHarbor Link
|
one: CodeHarbor Link
|
||||||
|
Reference in New Issue
Block a user