【進捗報告20200725】
本日の作業
マークアップ続き
・ログイン画面のエラーメッセージ
ページ毎に出し方違うから結構苦労
%h2 ログイン
= form_for(resource, as: resource_name, url: session_path(resource_name), html: { method: :post }) do |f|
= render "devise/shared/error_messages", resource: resource
- flash.each do |name, msg|
%h3#login_error_explanation= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String)
・パンくずリスト作成
簡単だしわかりやすいと思ったので各ページのhamlにcssを書き込みつつ
さらに楽をするためにnth-childの擬似クラス!
ページ毎に数字変えるだけだからほとんどコピペですんだ
:css
ul li:nth-child(4){
color: #3ccace;
}
.topic-path-wrapper
.topic-path:nth-child(-n+4)
.topic-path__point{
background-color: #3ccace;
}
.topic-path-wrapper
.topic-path:nth-child(-n+4)
.topic-path__border{
border-bottom: 2px solid #3ccace;
}
ログイン画面でパンくずリスト必要ないのでdisplay:none;
・プルリクエスト
何も問題なければ良いなー