Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions View/Elements/common_header.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,13 @@ if (! isset($isSettingMode)) {
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<?php if (AuthComponent::user()) : ?>
<li class="visible-sm">
<?php echo $this->NetCommonsHtml->avatarLink(Current::read(), [], [], 'User.id'); ?>
</li>
<li class="hidden-sm">
<?php echo $this->NetCommonsHtml->handleLink(Current::read(), ['avatar' => true], [], 'User'); ?>
</li>
<?php endif; ?>

<?php if (Current::hasSettingMode()) : ?>
<?php if (Current::hasControlPanel()) : ?>
<li>
<?php if (! $isSettingMode) : ?>
<?php echo $this->NetCommonsHtml->link(__d('pages', 'Setting mode on'), NetCommonsUrl::backToPageUrl(true)); ?>
<?php else: ?>
<?php echo $this->NetCommonsHtml->link(__d('pages', 'Setting mode off'), NetCommonsUrl::backToPageUrl()); ?>
<?php if (! Current::isControlPanel()): ?>
<?php echo $this->NetCommonsHtml->link(__d('control_panel', 'Control Panel'),
array('plugin' => 'control_panel', 'controller' => 'control_panel', 'action' => 'index')); ?>
<?php else : ?>
<?php echo $this->NetCommonsHtml->link(__d('control_panel', 'Back to the Rooms'), NetCommonsUrl::backToPageUrl()); ?>
<?php endif; ?>
</li>
<?php endif; ?>
Expand All @@ -78,17 +70,25 @@ if (! isset($isSettingMode)) {
</li>
<?php endif; ?>

<?php if (Current::hasControlPanel()) : ?>
<?php if (Current::hasSettingMode()) : ?>
<li>
<?php if (! Current::isControlPanel()): ?>
<?php echo $this->NetCommonsHtml->link(__d('control_panel', 'Control Panel'),
array('plugin' => 'control_panel', 'controller' => 'control_panel', 'action' => 'index')); ?>
<?php else : ?>
<?php echo $this->NetCommonsHtml->link(__d('control_panel', 'Back to the Rooms'), NetCommonsUrl::backToPageUrl()); ?>
<?php if (! $isSettingMode) : ?>
<?php echo $this->NetCommonsHtml->link(__d('pages', 'Setting mode on'), NetCommonsUrl::backToPageUrl(true)); ?>
<?php else: ?>
<?php echo $this->NetCommonsHtml->link(__d('pages', 'Setting mode off'), NetCommonsUrl::backToPageUrl()); ?>
<?php endif; ?>
</li>
<?php endif; ?>

<?php if (AuthComponent::user()) : ?>
<li class="visible-sm">
<?php echo $this->NetCommonsHtml->avatarLink(Current::read(), [], [], 'User.id'); ?>
</li>
<li class="hidden-sm">
<?php echo $this->NetCommonsHtml->handleLink(Current::read(), ['avatar' => true], [], 'User'); ?>
</li>
<?php endif; ?>

<?php if (AuthComponent::user()) : ?>
<li>
<?php echo $this->NetCommonsHtml->link(__d('net_commons', 'Logout'), '/auth/logout'); ?>
Expand All @@ -112,4 +112,4 @@ if (! isset($isSettingMode)) {

<?php
echo $this->Session->read('appendHtml');
CakeSession::delete('appendHtml');
CakeSession::delete('appendHtml');
18 changes: 16 additions & 2 deletions View/Helper/LinkButtonHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,22 @@ private function __getLinkHtml($title, $url, $options) {
} else {
$title = '<span class="hidden-xs">' . $title . '</span>';
}
$glyphicon = 'glyphicon glyphicon-' . h($options['icon']);
$title = '<span ' . 'class="' . $glyphicon . '"' . $ariaHidden . '></span> ' . $title;
if (substr($options['icon'], 0, strlen('glyphicon-')) === 'glyphicon-') {
$glyphicon = 'glyphicon ' . h($options['icon']);
} else {
$glyphicon = 'glyphicon glyphicon-' . h($options['icon']);
}

$iconTag = '<span ' . 'class="' . $glyphicon . '"' . $ariaHidden . '></span> ';
if (Hash::get($options, 'addIcon')) {
if (substr($options['addIcon'], 0, strlen('glyphicon-')) === 'glyphicon-') {
$glyphicon = 'glyphicon ' . h($options['addIcon']);
} else {
$glyphicon = 'glyphicon glyphicon-' . h($options['addIcon']);
}
$iconTag .= '<span ' . 'class="' . $glyphicon . '"' . $ariaHidden . '></span> ';
}
$title = $iconTag . $title;
unset($options['icon']);

//ボタンサイズ
Expand Down
8 changes: 8 additions & 0 deletions webroot/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,17 @@ ul.nav-pills {
margin-bottom: 8px;
}

.nc-not-found {
margin-top: 20px;
margin-bottom: 4px;
}

/**
* コンテンツリストの各コンテンツのスタイル
*/
.frame .nc-content-list > article:first-child {
margin-top: 24px;
}
.frame .nc-content-list > article {
border-bottom: 1px solid #ccc;
padding-bottom: 8px;
Expand Down