mirror of
https://github.com/wahyd4/Libr.git
synced 2026-08-10 05:16:04 +10:00
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
doctype html
|
|
html
|
|
head
|
|
title Libr
|
|
link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"
|
|
= stylesheet_link_tag '/bootstrap/css/bootstrap.min.css'
|
|
= stylesheet_link_tag '/bootstrap/css/bootstrap-responsive.min.css'
|
|
= stylesheet_link_tag 'application', media: 'all'
|
|
= csrf_meta_tags
|
|
= yield :style_includes
|
|
|
|
body
|
|
|
|
div.navbar.navbar-fixed-top
|
|
div.navbar-inner
|
|
div.container
|
|
a.brand href="/" 首页
|
|
div.nav
|
|
ul.nav
|
|
li
|
|
a href="/books/new" 添加图书
|
|
- if @current_user != nil
|
|
li
|
|
a href="/users/#{@current_user.id}/books" 我的书架
|
|
li
|
|
a href="/users" 我的记录
|
|
ul.nav.pull-right
|
|
-if @current_user != nil
|
|
li
|
|
a href="/users/#{@current_user.id}"
|
|
img.img-circle style="max-width:82%;margin:-5px" src="#{@current_user.avatar}" title="#{@current_user.name}"
|
|
li
|
|
a href="/logout" 注销
|
|
- else
|
|
li
|
|
a href="/login" 登录
|
|
|
|
|
|
div.container.main
|
|
= yield
|
|
|
|
div#footer
|
|
div.container
|
|
p.muted.credit 2013 ThoughtWorks
|
|
|
|
= javascript_include_tag 'application'
|
|
= yield :javascript_includes
|