Skip to content

Commit

Permalink
Merge pull request #7711 from fjordllc/hotfix/books_layout
Browse files Browse the repository at this point in the history
書籍一覧に.page-bodyが2つあったのを修正
  • Loading branch information
machida authored Apr 18, 2024
2 parents 7441259 + f0c1169 commit 2b3bc4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/javascript/components/books.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template lang="pug">
.page-body
div
nav.page-filter.form
.container.is-md
filterDropdown(
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/textarea-initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class {
responseKey: 'url',
csrfToken: CSRF.getToken(),
placeholder: '%filenameをアップロード中...',
//uploadImageTag:
// uploadImageTag:
// '<img src=%url width="100" height="100" loading="lazy" decoding="async" alt="%filename">\n',
afterPreview: () => {
autosize.update(textarea)
Expand Down
2 changes: 1 addition & 1 deletion app/views/courses/books/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ header.page-header
= link_to '全て', course_books_path, class: "pill-nav__item-link #{params[:status] == 'mustread' ? '' : 'is-active'}"
li.pill-nav__item
= link_to '必読', course_books_path(status: 'mustread'), class: "pill-nav__item-link #{params[:status] == 'mustread' ? 'is-active' : ''}"
div(data-vue="CourseBooks" data-vue-is-admin:boolean="#{current_user.admin?}" data-vue-is-mentor:boolean="#{current_user.mentor?}" data-vue-course:json="#{@course.to_json}")
div(data-vue="CourseBooks" data-vue-is-admin:boolean="#{current_user.admin?}" data-vue-is-mentor:boolean="#{current_user.mentor?}" data-vue-course:json="#{@course.to_json}")

0 comments on commit 2b3bc4d

Please sign in to comment.