Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
0c35dbeb
Commit
0c35dbeb
authored
May 09, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: minor fixes for consistency and style
Log widget has a problem with config section unhide.
parent
80d2d039
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
19 deletions
+10
-19
index.php
src/www/index.php
+1
-1
log.widget.php
src/www/widgets/widgets/log.widget.php
+1
-3
picture.widget.php
src/www/widgets/widgets/picture.widget.php
+1
-3
rss.widget.php
src/www/widgets/widgets/rss.widget.php
+1
-3
services_status.widget.php
src/www/widgets/widgets/services_status.widget.php
+1
-3
system_log.widget.php
src/www/widgets/widgets/system_log.widget.php
+1
-3
thermal_sensors.widget.php
src/www/widgets/widgets/thermal_sensors.widget.php
+4
-3
No files found.
src/www/index.php
View file @
0c35dbeb
...
...
@@ -365,10 +365,10 @@ include("fbegin.inc");?>
</h3></li>
<li
class=
"pull-right"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-default btn-xs disabled"
id=
"
<?=
$widgetItem
[
'name'
]
?>
-configure"
onclick=
'return configureWidget("
<?=
$widgetItem
[
'name'
]
?>
")'
style=
"cursor:pointer"
><span
class=
"glyphicon glyphicon-pencil"
></span></button>
<button
type=
"button"
class=
"btn btn-default btn-xs"
title=
"minimize"
id=
"
<?=
$widgetItem
[
'name'
]
?>
-min"
onclick=
'return minimizeWidget("
<?=
$widgetItem
[
'name'
]
?>
",true)'
style=
"display:
<?=
$mindiv
?>
;"
><span
class=
"glyphicon glyphicon-minus"
></span></button>
<button
type=
"button"
class=
"btn btn-default btn-xs"
title=
"maximize"
id=
"
<?=
$widgetItem
[
'name'
]
?>
-max"
onclick=
'return showWidget("
<?=
$widgetItem
[
'name'
]
?>
",true)'
style=
"display:
<?=
$mindiv
==
'none'
?
'inline'
:
'none'
?>
;"
><span
class=
"glyphicon glyphicon-plus"
></span></button>
<button
type=
"button"
class=
"btn btn-default btn-xs"
title=
"remove widget"
onclick=
'return closeWidget("
<?=
$widgetItem
[
'name'
]
?>
",true)'
><span
class=
"glyphicon glyphicon-remove"
></span></button>
<button
type=
"button"
class=
"btn btn-default btn-xs"
id=
"
<?=
$widgetItem
[
'name'
]
?>
-configure"
onclick=
'return configureWidget("
<?=
$widgetItem
[
'name'
]
?>
")'
style=
"display:none; cursor:pointer"
><span
class=
"glyphicon glyphicon-pencil"
></span></button>
</div>
</li>
</ul>
...
...
src/www/widgets/widgets/log.widget.php
View file @
0c35dbeb
...
...
@@ -322,8 +322,6 @@ endforeach;
<!-- needed to display the widget settings menu -->
<script
type=
"text/javascript"
>
//
<!
[
CDATA
[
selectIntLink
=
"
log-configure
"
;
textlink
=
document
.
getElementById
(
selectIntLink
);
textlink
.
style
.
display
=
"
inline
"
;
$
(
"
#log-configure
"
).
toggleClass
(
"
disabled
"
);
//]]>
</script>
src/www/widgets/widgets/picture.widget.php
View file @
0c35dbeb
...
...
@@ -97,8 +97,6 @@ endif ?>
<!-- needed to show the settings widget icon -->
<script
type=
"text/javascript"
>
//
<!
[
CDATA
[
selectIntLink
=
"
picture-configure
"
;
textlink
=
document
.
getElementById
(
selectIntLink
);
textlink
.
style
.
display
=
"
inline
"
;
$
(
"
#picture-configure
"
).
toggleClass
(
"
disabled
"
);
//]]>
</script>
src/www/widgets/widgets/rss.widget.php
View file @
0c35dbeb
...
...
@@ -170,8 +170,6 @@ if (!empty($config['widgets']['rsswidgettextlength']) && is_numeric($config['wid
<!-- needed to display the widget settings menu -->
<script
type=
"text/javascript"
>
//
<!
[
CDATA
[
selectIntLink
=
"
rss-configure
"
;
textlink
=
document
.
getElementById
(
selectIntLink
);
textlink
.
style
.
display
=
"
inline
"
;
$
(
"
#rss-configure
"
).
toggleClass
(
"
disabled
"
);
//]]>
</script>
src/www/widgets/widgets/services_status.widget.php
View file @
0c35dbeb
...
...
@@ -103,8 +103,6 @@ if (isset($_POST['servicestatusfilter'])) {
<!-- needed to display the widget settings menu -->
<script
type=
"text/javascript"
>
//
<!
[
CDATA
[
selectIntLink
=
"
services_status-configure
"
;
textlink
=
document
.
getElementById
(
selectIntLink
);
textlink
.
style
.
display
=
"
inline
"
;
$
(
"
#services_status-configure
"
).
toggleClass
(
"
disabled
"
);
//]]>
</script>
src/www/widgets/widgets/system_log.widget.php
View file @
0c35dbeb
...
...
@@ -75,8 +75,6 @@ if(is_numeric($_POST['logfiltercount'])) {
<!-- needed to display the widget settings menu -->
<script
type=
"text/javascript"
>
//
<!
[
CDATA
[
selectIntLink
=
"
system_log-configure
"
;
textlink
=
document
.
getElementById
(
selectIntLink
);
textlink
.
style
.
display
=
"
inline
"
;
$
(
"
#system_log-configure
"
).
toggleClass
(
"
disabled
"
);
//]]>
</script>
src/www/widgets/widgets/thermal_sensors.widget.php
View file @
0c35dbeb
<?php
/*
Copyright (C) 2014-2016 Deciso B.V.
...
...
@@ -113,7 +114,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
<table
class=
"table table-striped"
>
<thead>
<tr>
<th
colspan=
"2"
>
<?=
gettext
(
'Thresholds in
°
C (1 to 100):'
)
?>
</th>
<th
colspan=
"2"
>
<?=
gettext
(
'Thresholds in
°
C (1 to 100):'
)
?>
</th>
</tr>
</thead>
<tbody>
...
...
@@ -159,7 +160,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
<!-- template progress bar used for all constructed items in thermal_sensors_widget_update() -->
<div
style=
"display:none"
id=
"thermal_sensors_widget_progress_bar"
>
<div
class=
"progress"
>
<div
class=
"progress-bar progress-bar-s
triped progress-bar-success active
"
role=
"progressbar"
aria-valuenow=
"0"
aria-valuemin=
"0"
aria-valuemax=
"100"
style=
"width: 0%"
></div>
<div
class=
"progress-bar progress-bar-s
uccess
"
role=
"progressbar"
aria-valuenow=
"0"
aria-valuemin=
"0"
aria-valuemax=
"100"
style=
"width: 0%"
></div>
</div>
<span
class=
"info"
>
</span>
...
...
@@ -173,6 +174,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
<!-- needed to display the widget settings menu -->
<script
type=
"text/javascript"
>
//
<!
[
CDATA
[
$
(
"
#thermal_sensors-configure
"
).
css
({
display
:
"
inline
"
}
);
$
(
"
#thermal_sensors-configure
"
).
toggleClass
(
"
disabled
"
);
//]]>
</script>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment