mirror of
https://github.com/wahyd4/Libr.git
synced 2026-08-09 04:46:07 +10:00
add book summary to page
This commit is contained in:
@@ -36,9 +36,11 @@ $(document).ready(function(){
|
||||
ul.append('<li><b>标签:</b></li>')
|
||||
for(var i=0;i<json.tags.length;i++){
|
||||
var tag = $('<span class="label my-label">'+json.tags[i].title+'</span>');
|
||||
$('div.well.summary').append(tag);
|
||||
$('div.well.tags').append(tag);
|
||||
}
|
||||
|
||||
$('.summary').text(json.summary);
|
||||
|
||||
}
|
||||
|
||||
loadBook();
|
||||
|
||||
@@ -12,7 +12,7 @@ div.detail.row-fluid
|
||||
img.cover
|
||||
div.span4
|
||||
ul.unstyled
|
||||
div.well.summary
|
||||
div.well.tags
|
||||
div.span4
|
||||
div.action style="text-align:center"
|
||||
= form_tag controller: 'book', action: 'borrow' do
|
||||
@@ -50,4 +50,8 @@ div.detail.row-fluid
|
||||
div
|
||||
a href="/users/#{borrower.id}/books"
|
||||
=image_tag "#{borrower.avatar}", class:'avatar',title: borrower.name
|
||||
div.clearfix
|
||||
div style="margin-top:20px;"
|
||||
b 摘要:
|
||||
div.hero-unit.summary
|
||||
|
||||
|
||||
Reference in New Issue
Block a user