From 5cb3944b775d8c0a217f11c8f1120e401a444f03 Mon Sep 17 00:00:00 2001 From: "OHASHI, Norikazu" Date: Sun, 12 May 2019 19:43:47 +0900 Subject: [PATCH] =?utf8?q?=E6=9B=B8=E7=B1=8D=E8=A9=B3=E7=B4=B0=E3=81=AE?= =?utf8?q?=E3=82=BF=E3=82=A4=E3=83=88=E3=83=AB=E3=81=AB=E5=B7=BB=E6=95=B0?= =?utf8?q?=E3=82=92=E8=A8=98=E8=BC=89=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?utf8?q?=E3=81=AB=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- sinatra/app/views/book_info.haml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sinatra/app/views/book_info.haml b/sinatra/app/views/book_info.haml index 199844b..321a4ac 100644 --- a/sinatra/app/views/book_info.haml +++ b/sinatra/app/views/book_info.haml @@ -1,9 +1,11 @@ - # encoding: utf-8 - id = @id - book_info = @book_info - +- book_title = book_info[:title] +- if book_info [:volume] != nil + - book_title += ": #{book_info[:volume]} 巻" %h2 - 「#{book_info[:title]}」 + 「#{book_title}」 %image{:border => '1', :src => book_info[:cover_uri], :width => '160', :height => '230'} @@ -18,9 +20,7 @@ %th 書名 %td - #{book_info[:title]} - - if book_info [:volume] != nil - : #{book_info[:volume]} 巻 + #{book_title} - if book_info[:series] != nil and book_info[:series] != "" %tr %th -- 2.19.2