FIX отображение пункта добавления точки в главном меню

This commit is contained in:
Krivchikov Dmitry 2016-04-08 17:08:40 +03:00
parent 0a18126ea3
commit 5a31e1202c
3 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,5 @@
@media screen and (max-width:815px) { @media screen and (max-width:815px) {
.onlyBigScreen { .onlyBigScreen {display: none!important;}
display: none;
}
div.header{ div.header{
padding: 5px 7px; padding: 5px 7px;

View File

@ -154,7 +154,7 @@ img.imageInArticle {border: solid 3px white;max-width: 100%;}
} }
@media screen and (max-width:815px) { @media screen and (max-width:815px) {
.onlyBigScreen {display: none;} .onlyBigScreen {display: none!important;}
body { body {
padding: 60px 0 0 0!important; padding: 60px 0 0 0!important;

View File

@ -77,11 +77,11 @@ if (App::$user && App::$user->id) {
<?php if (App::$user): <?php if (App::$user):
$addWithoutConfirm = Point::model()->getCountByUser(App::$user->id) > 0; $addWithoutConfirm = Point::model()->getCountByUser(App::$user->id) > 0;
?> ?>
<li class="important"> <li class="important onlyBigScreen">
<a href="#" onclick="<?= $addWithoutConfirm ? 'activateAddPoint()' : 'showPointagreement()'; ?>">Добавить объект</a> <a href="#" onclick="<?= $addWithoutConfirm ? 'activateAddPoint()' : 'showPointagreement()'; ?>">Добавить объект</a>
</li> </li>
<?php else: ?> <?php else: ?>
<li class="important"><a href="#" onclick="$('#loginModal').modal('show');">Добавить объект</a></li> <li class="important onlyBigScreen"><a href="#" onclick="$('#loginModal').modal('show');">Добавить объект</a></li>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>