Added social icons to navigation footer

This commit is contained in:
Hillel Coren 2016-12-12 00:38:00 +02:00
parent 03e9e978d7
commit a6ad3696aa
6 changed files with 19 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -167,6 +167,10 @@
text-overflow: ellipsis;
}
.sidebar-nav li div.nav-footer {
text-indent: 16px;
}
.sidebar-nav li div.nav-footer i {
color:#ccc !important;
}

View File

@ -517,15 +517,18 @@
<i class="fa fa-envelope"></i>
</a>
<a href="{{ url(NINJA_FORUM_URL) }}" target="_blank" title="{{ trans('texts.support_forum') }}">
<i class="fa fa-list-ul"></i>
</a>
<a href="javascript:showKeyboardShortcuts()" target="_blank" title="{{ trans('texts.keyboard_shortcuts') }}">
<i class="fa fa-question-circle"></i>
</a>
<a href="{{ url(SOCIAL_LINK_FACEBOOK) }}" target="_blank" title="">
<a href="{{ url(SOCIAL_LINK_FACEBOOK) }}" target="_blank" title="Facebook">
<i class="fa fa-facebook-square"></i>
</a>
<a href="{{ url(SOCIAL_LINK_TWITTER) }}" target="_blank" title="">
<a href="{{ url(SOCIAL_LINK_TWITTER) }}" target="_blank" title="Twitter">
<i class="fa fa-twitter-square"></i>
</a>
<a href="{{ url(SOCIAL_LINK_GITHUB) }}" target="_blank" title="">
<a href="{{ url(SOCIAL_LINK_GITHUB) }}" target="_blank" title="GitHub">
<i class="fa fa-github-square"></i>
</a>
</div>

View File

@ -82,10 +82,15 @@
</div>
<script type="text/javascript">
function showKeyboardShortcuts() {
$('#helpModal').modal('show');
}
$(function() {
Mousetrap.bind('?', function(e) {
$('#helpModal').modal('show');
showKeyboardShortcuts();
});
Mousetrap.bind('/', function(e) {

View File

@ -4,7 +4,7 @@
<a type="button" class="btn btn-default btn-sm pull-right" title="{{ Utils::getReadableUrl(request()->path()) }}"
href="{{ Utils::getDocsUrl(request()->path()) }}" target="_blank">
<i class="fa fa-question-circle" style="width:20px"></i>
<i class="fa fa-info-circle" style="width:20px"></i>
</a>
@elseif (Auth::user()->can('create', $option) || Auth::user()->can('create', substr($option, 0, -1)))