Skip to content

Commit

Permalink
Debug display bugs due to font awesome upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Subiron committed Jan 23, 2019
1 parent 0019042 commit 90e0f20
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 24 deletions.
21 changes: 13 additions & 8 deletions module/htdocs/css/shinken-layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ body {
margin-top:15px;
}

.page-header .fas {
margin-right: 10px;
}

.breadcrumb {
margin:0;
}
Expand Down Expand Up @@ -198,13 +202,13 @@ td .ellipsis > .long-output {
margin: 0;
}

.fa.fa-striked:after {
.fas.fa-striked:after {
position: absolute;
content: "/";
font-weight: bold;
font-size: 1.7em;
font-size: 2em;
left: 16px;
top: 11px;
top: 7px;
}

.navbar-inverse {
Expand Down Expand Up @@ -348,8 +352,8 @@ td .ellipsis > .long-output {
}


.navbar-inverse-2 .btn-action .fa,
.btn-action .fa {
.navbar-inverse-2 .btn-action .far,
.btn-action .far {
font-size: 20px;
height: 22px;
width: 22px;
Expand Down Expand Up @@ -437,9 +441,10 @@ footer nav {
#action-menu li a {
font-size: small;
}
#action-menu li .fa {
padding: 0 12px;
font-size: 12px;
#action-menu li .fas,
#action-menu li .far {
padding: 1px;
margin: 1px;
}
@media(max-width:768px) {
#action-menu {
Expand Down
4 changes: 2 additions & 2 deletions module/plugins/eltdetail/views/_eltdetail_action-menu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
<li> <a href="#" class="js-schedule-downtime" title="Schedule a downtime for this {{elt_type}}"
data-placement="right"
data-element="{{helper.get_uri_name(elt)}}" >
<i class="fas fa-clock"></i> <span class="hidden-xs">Schedule a downtime</span>
<i class="far fa-clock"></i> <span class="hidden-xs">Schedule a downtime</span>
</a> </li>
%if elt.downtimes:
<li> <a href="#" class="js-delete-all-downtimes" title="Delete all downtimes for this {{elt_type}}"
data-placement="right"
data-element="{{helper.get_uri_name(elt)}}" >
<i class="fas fa-clock"></i> <span class="hidden-xs">Delete all downtimes</span>
<i class="far fa-clock"></i> <span class="hidden-xs">Delete all downtimes</span>
</a> </li>
%end
%if elt_type=='host' and app.helpdesk_module.is_available():
Expand Down
2 changes: 1 addition & 1 deletion module/plugins/impacts/views/impacts.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
title="Schedule a downtime for this element"
data-element="{{helper.get_uri_name(pb)}}"
>
<i class="fas fa-clock"></i><span class="hidden-sm hidden-xs"> Downtime</span>
<i class="far fa-clock"></i><span class="hidden-sm hidden-xs"> Downtime</span>
</button>
</div>
</li>
Expand Down
13 changes: 13 additions & 0 deletions module/plugins/problems/htdocs/css/problems.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ tr.selected {
border-right: 1px solid red;
}

.fa-stack {
width: 2em;
}

tr.selected .item-icon,
.item-state:hover .item-icon {
display: none;
Expand All @@ -113,6 +117,10 @@ tr.selected .item-checkbox,
display: none;
}

.js-select-all .onhover-label .fas {
line-height: 0.9;
}

.js-select-all:hover .onhover-label {
display: inline-block;
width: 200px;
Expand All @@ -131,6 +139,11 @@ tr.selected .item-checkbox,
text-align: right;
}

.pb_detail-action-buttons .btn-action {
padding: 8px;
color: #555;
}

@media(max-width:768px) {
text-align: center;
}
Expand Down
4 changes: 2 additions & 2 deletions module/plugins/problems/views/_problems_actions-navbar.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<li>
<div class="dropdown" style="display: inline; padding: 0; margin: 0;">
<button class="btn btn-ico btn-action dropdown-toggle" type="button" id="dropdown-downtime" data-toggle="dropdown" title="Schedule a downtime">
<i class="fas fa-clock"></i>
<i class="far fa-clock"></i>
</button>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-downtime" style="margin-top: 15px;">
<li class="dropdown-header">Set a downtime for…</li>
Expand Down Expand Up @@ -56,7 +56,7 @@
%if s and s['nb_downtime']:
<li>
<button class="btn btn-ico btn-action js-delete-all-downtimes" title="Remove all downtimes">
<i class="fas fa-clock text-danger"></i>
<i class="far fa-clock text-danger"></i>
</button>
</li>
%end
Expand Down
6 changes: 3 additions & 3 deletions module/plugins/problems/views/_problems_eltdetail.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<button class="btn btn-lg btn-ico btn-action dropdown-toggle" type="button" id="dropdown-downtime-{{ helper.get_html_id(pb) }}" data-toggle="dropdown"
title="Schedule a downtime for this element"
data-element="{{helper.get_uri_name(pb)}}">
<i class="fas fa-clock"></i>
<i class="far fa-clock"></i>
</button>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-downtime-{{ helper.get_html_id(pb) }}" style="margin-top: 15px;">
<li class="dropdown-header">Set a downtime for…</li>
Expand Down Expand Up @@ -55,7 +55,7 @@
<a class="btn btn-lg btn-ico btn-action" href="{{!helper.get_link_dest(pb)}}#graphs" title="Element graphs"><i class="fas fa-chart-line"></i></a>
%end
%if app.logs_module.is_available():
<a class="btn btn-lg btn-ico btn-action" href="{{!helper.get_link_dest(pb)}}#history title="Element history"><i class="fas fa-th-list"></i></a>
<a class="btn btn-lg btn-ico btn-action" href="{{!helper.get_link_dest(pb)}}#history" title="Element history"><i class="fas fa-list"></i></a>
%end
%if app.helpdesk_module.is_available():
<a class="btn btn-lg btn-ico btn-action" href="{{!helper.get_link_dest(pb)}}#helpdesk title="Element helpdesk"><i class="fas fa-ambulance"></i></a>
Expand Down Expand Up @@ -131,7 +131,7 @@
%include("_eltdetail_comment_table.tpl", elt=pb, comments=[ c for c in pb.comments if c.entry_time > since])
%if pb.downtimes:
<h4 class="page-header"><i class="fas fa-clock"></i></i> Downtimes</h4>
<h4 class="page-header"><i class="far fa-clock"></i></i> Downtimes</h4>
%include("_eltdetail_downtime_table.tpl", downtimes=pb.downtimes)
%end
</div>
Expand Down
4 changes: 2 additions & 2 deletions module/plugins/problems/views/_problems_table.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{pb}}
</td>
%else:
<td width="110px" title="{{pb.get_name()}} - {{pb.state}}<br> Since {{helper.print_date(pb.last_state_change, format="%d %b %Y %H:%M:%S")}}<br> Last check {{helper.print_duration(pb.last_chk)}}<br> Next check {{helper.print_duration(pb.next_chk)}}"
<td width="130px" title="{{pb.get_name()}} - {{pb.state}}<br> Since {{helper.print_date(pb.last_state_change, format="%d %b %Y %H:%M:%S")}}<br> Last check {{helper.print_duration(pb.last_chk)}}<br> Next check {{helper.print_duration(pb.next_chk)}}"
class="font-{{pb.state.lower()}} text-center">
<div style="display: table-cell; vertical-align: middle; padding-right: 10px;">
{{!helper.get_fa_icon_state(pb, use_title=False)}}
Expand All @@ -29,7 +29,7 @@
<i class="fas fa-check" title="Acknowledged"></i><br>
%end
%if pb.in_scheduled_downtime:
<i class="fas fa-clock" title="In scheduled downtime"></i><br>
<i class="far fa-clock" title="In scheduled downtime"></i><br>
%end
</td>
<td width="100%">
Expand Down
8 changes: 4 additions & 4 deletions module/plugins/problems/views/problems.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

<table class="table table-condensed table-hover problems-table">
<colgroup>
<col style="width: 120px;"/>
<col style="width: 122px;"/>
<col style="width: 30px;"/>
<col class="host-column hidden-sm hidden-xs hidden-md"/>
<col class="service-column hidden-sm hidden-xs"/>
Expand Down Expand Up @@ -106,7 +106,7 @@ Next check <strong>{{helper.print_duration(pb.next_chk)}}</strong>
%if pb.state_type == 'HARD':
{{!helper.print_duration(pb.last_state_change, just_duration=True, x_elts=2)}}
%else:
attempt {{pb.attempt}}/{{pb.max_check_attempts}}
<small>attempt {{pb.attempt}}/{{pb.max_check_attempts}}</small>
<!--soft state-->
%end
<!--</span>-->
Expand All @@ -118,7 +118,7 @@ Next check <strong>{{helper.print_duration(pb.next_chk)}}</strong>
<i class="fas fa-check" title="Acknowledged"></i><br>
%end
%if pb.in_scheduled_downtime:
<i class="fas fa-clock" title="In scheduled downtime"></i><br>
<i class="far fa-clock" title="In scheduled downtime"></i><br>
%end
</td>
%aka = ''
Expand Down Expand Up @@ -166,7 +166,7 @@ Next check <strong>{{helper.print_duration(pb.next_chk)}}</strong>
data-trigger="hover" data-placement="left"
data-item="{{pb.get_full_name()}}"
href="{{!helper.get_link_dest(pb)}}#graphs">
<i class="fas fa-line-chart"></i>
<i class="fas fa-chart-line"></i>
</a>
%end
%end
Expand Down
2 changes: 1 addition & 1 deletion module/plugins/worldmap/views/_worldmap.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
function hostInfoContent() {
var text = '<div class="map-infoView" id="iw-' + this.name + '">' + this.iconState + ' <span class="map-hostname"><a href="/host/' + this.name + '">' + this.name + '</a> ' + this.businessImpact + ' is ' + this.state + '.</span>';
if (this.scheduledDowntime) {
text += '<div><i class="fas fa-clock"></i> Currently in scheduled downtime.</div>';
text += '<div><i class="far fa-clock"></i> Currently in scheduled downtime.</div>';
}
if (this.isProblem) {
text += '<div><i class="fas fa-check"></i> ';
Expand Down
2 changes: 1 addition & 1 deletion module/views/header_element.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
<li> <a href="{{ app.get_url('System') }}"> <i class="fas fa-fw fa-heartbeat sidebar-icon"></i>
&nbsp;Status </a> </li>
%if app.logs_module.is_available():
<li> <a href="{{ app.get_url('History') }}"> <i class="fas fa-fw fa-th-list sidebar-icon"></i>
<li> <a href="{{ app.get_url('History') }}"> <i class="fas fa-fw fa-list sidebar-icon"></i>
&nbsp;Logs </a> </li>
<li> <a href="{{ app.get_url('GlobalStats') }}"> <i class="fas fa-fw fa-bell sidebar-icon"></i>
&nbsp;Alerts </a> </li>
Expand Down

0 comments on commit 90e0f20

Please sign in to comment.