visually separate format-buttons from direct-links

This commit is contained in:
MaZderMind 2015-09-28 20:05:22 +02:00
parent 7208ba0e53
commit 2d5efacb59
3 changed files with 10 additions and 8 deletions

View file

@ -8,11 +8,11 @@
<div class="btn-group" role="group">
<div class="btn btn-primary" disabled>Audio</div>
<a href="<?=h($selection->getLink())?>" class="btn btn-default">
<a href="<?=h($selection->getLink())?>" class="btn btn-primary">
<span class="fa fa-flag-o"></span>
native
</a>
<a href="<?=h($selection->getTranslatedLink())?>" class="btn btn-default">
<a href="<?=h($selection->getTranslatedLink())?>" class="btn btn-primary">
<span class="fa fa-flag"></span>
translated
</a>
@ -21,6 +21,7 @@
</div>
</div>
<br /><br />
<? endif ?>

View file

@ -8,11 +8,11 @@
<div class="btn-group" role="group">
<div class="btn btn-primary" disabled>Slides</div>
<a href="<?=h($selection->getLink())?>" class="btn btn-default">
<a href="<?=h($selection->getLink())?>" class="btn btn-primary">
<span class="fa fa-flag-o"></span>
native
</a>
<a href="<?=h($selection->getTranslatedLink())?>" class="btn btn-default">
<a href="<?=h($selection->getTranslatedLink())?>" class="btn btn-primary">
<span class="fa fa-flag"></span>
translated
</a>
@ -21,6 +21,7 @@
</div>
</div>
<br /><br />
<? endif ?>

View file

@ -6,22 +6,22 @@
<? $selection = $room->createSelectionObject($res) ?>
<div class="col-lg-3 col-md-4 col-lg-5 col-xs-12">
<div class="btn-group" role="group">
<div class="btn btn-primary" disabled><?=h($selection->getDisplay())?></div>
<div class="btn btn-primary" disabled><?=h($selection->getDisplay())?></div>
<? if($room->hasTranslation()): ?>
<a href="<?=h($selection->getLink())?>" class="btn btn-default">
<a href="<?=h($selection->getLink())?>" class="btn btn-primary">
<span class="fa fa-flag-o"></span>
native
</a>
<a href="<?=h($selection->getTranslatedLink())?>" class="btn btn-default">
<a href="<?=h($selection->getTranslatedLink())?>" class="btn btn-primary">
<span class="fa fa-flag"></span>
translated
</a>
<? else: ?>
<a href="<?=h($selection->getLink())?>" class="btn btn-default">
<a href="<?=h($selection->getLink())?>" class="btn btn-primary">
<span class="fa fa-video-camera"></span>
video
</a>