Skip to content

Commit

Permalink
use title helper, fix post form
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Oct 12, 2020
1 parent 5e8cd73 commit 4845702
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/views/admin/blog/posts/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
- @post.errors.full_messages.each do |message|
%li= message

= hidden_field_tag 'back_path', params[:back_path]

.field
= f.label :title
= f.text_field :title
Expand Down
2 changes: 1 addition & 1 deletion app/views/courses/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-#
-# SPDX-License-Identifier: AGPL-3.0-or-later
- content_for(:html_title) { @course.name }
- set_title @course.name

%script{type: "application/ld+json"}
{
Expand Down
2 changes: 1 addition & 1 deletion app/views/styles/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
-#+ -#-#= link_to lesson.name, lesson
-#+ -#= lesson.name
- content_for(:html_title) { @style.name }
- set_title @style.name

%script{type: "application/ld+json"}
{
Expand Down

0 comments on commit 4845702

Please sign in to comment.