Skip to content

Commit

Permalink
layout
Browse files Browse the repository at this point in the history
  • Loading branch information
joni committed Apr 28, 2012
1 parent d13caec commit 9a94a2a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion yii-app/css/main.css
Expand Up @@ -3,7 +3,7 @@ body
margin: 0;
padding: 0;
color: #555;
font: normal 10pt Arial,Helvetica,sans-serif;
font: normal 14pt Arial,Helvetica,sans-serif;
background: #EFEFEF;
}

Expand Down Expand Up @@ -237,5 +237,7 @@ div.search-form

.book.view {
clear: left;

overflow: auto;
}

2 changes: 2 additions & 0 deletions yii-app/protected/config/main.php
Expand Up @@ -34,6 +34,7 @@
'allowAutoLogin'=>true,
),
// uncomment the following to enable URLs in path-format
/*
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
Expand All @@ -43,6 +44,7 @@
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
*/
'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
Expand Down
10 changes: 4 additions & 6 deletions yii-app/protected/views/book/view.php
Expand Up @@ -4,16 +4,14 @@
'View',
);?>
<div style="book view">
<div style="float: left; margin: 10px">
<div style="float: left; margin: 10px 10px 0 0">
<?= CHtml::image($book->image) ?>
</div>
<h1><?= $book->title ?></h1>
<h2>By <?=$book->author ?></h2>

<p>
<h1><?= $book->title ?>
<?= CHtml::link('+1',array('vote','id'=>$book->google_id,'vote'=>+1)) ?> /
<?= CHtml::link('-1',array('vote','id'=>$book->google_id,'vote'=>-1)) ?>
</p>
</h1>
<h2>By <?=$book->author ?></h2>

<p><?= nl2br($book->description) ?></p>
</div>

0 comments on commit 9a94a2a

Please sign in to comment.