Skip to content

Commit

Permalink
Added customized text on empty galleries
Browse files Browse the repository at this point in the history
  • Loading branch information
hugodias committed May 15, 2014
1 parent 1bd6604 commit 9aa1645
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions View/Gallery/index.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<?php if (empty($galleries)) { ?>
<div class="container-empty">
<div class="img"><i class="fa fa-picture-o"></i></div>
<h2>You don't have albums yet.</h2>
<h2>You don't have <?php echo $search_status?> albums yet.</h2>
<br/>
<?php echo $this->Gallery->new_gallery_button(array('class' => 'btn btn-primary', 'style' => 'margin-top: 10px')); ?>
</div>
Expand Down Expand Up @@ -58,9 +58,9 @@
<div class="row">
<div class="col-md-12">
<?php if ($search_status == "draft") { ?>
<?php echo $this->Html->link('<i class="fa fa-check"></i> Published albums', '?status=published', array('class' => 'btn', 'escape' => false)) ?>
<?php echo $this->Html->link('<i class="fa fa-check"></i> Published albums', '?status=published', array('class' => 'btn btn-default', 'escape' => false)) ?>
<?php } else { ?>
<?php echo $this->Html->link('<i class="fa fa-pagelines"></i> Drafts', '?status=draft', array('class' => 'btn', 'escape' => false)) ?>
<?php echo $this->Html->link('<i class="fa fa-pagelines"></i> Drafts', '?status=draft', array('class' => 'btn btn-default', 'escape' => false)) ?>
<?php } ?>
</div>
</div>
2 changes: 1 addition & 1 deletion View/Layouts/default.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php echo $title_for_layout; ?> - <?php echo Configure::read('Application.name') ?></title>
<title><?php echo $title_for_layout; ?></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
Expand Down

0 comments on commit 9aa1645

Please sign in to comment.