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
19ae1954
Commit
19ae1954
authored
Mar 29, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Apr 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ipsec status) collapse/expand all, closes
https://github.com/opnsense/core/issues/811
(cherry picked from commit
e5cbe0cf
)
parent
23a082f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
diag_ipsec.php
src/www/diag_ipsec.php
+24
-1
No files found.
src/www/diag_ipsec.php
View file @
19ae1954
...
...
@@ -93,6 +93,25 @@ include("head.inc");
$
(
"
#
"
+
$
(
this
).
data
(
'
target
'
)).
toggleClass
(
'
hidden visible
'
);
event
.
preventDefault
();
});
// show/hide all info
$
(
"
#collapse_all
"
).
click
(
function
(){
// use a data attribute to store visibility for all detail items (we can't toggle here, because some items
// might already be expanded)
if
(
$
(
"
#collapse_all
"
).
data
(
'
status
'
)
!=
'
visible
'
)
{
$
(
"
.ipsec_info
"
).
each
(
function
(){
$
(
"
#
"
+
$
(
this
).
data
(
'
target
'
)).
removeClass
(
'
hidden
'
);
$
(
"
#
"
+
$
(
this
).
data
(
'
target
'
)).
addClass
(
'
visible
'
);
});
$
(
"
#collapse_all
"
).
data
(
'
status
'
,
'
visible
'
);
}
else
{
$
(
"
.ipsec_info
"
).
each
(
function
(){
$
(
"
#
"
+
$
(
this
).
data
(
'
target
'
)).
removeClass
(
'
visible
'
);
$
(
"
#
"
+
$
(
this
).
data
(
'
target
'
)).
addClass
(
'
hidden
'
);
});
$
(
"
#collapse_all
"
).
data
(
'
status
'
,
'
hidden
'
);
}
});
});
</script>
<body>
...
...
@@ -116,7 +135,11 @@ include("head.inc");
<th>
<?=
gettext
(
"Remote IP"
);
?>
</th>
<th
class=
"hidden-xs hidden-sm"
>
<?=
gettext
(
"Local Auth"
);
?>
</th>
<th
class=
"hidden-xs hidden-sm"
>
<?=
gettext
(
"Remote Auth"
);
?>
</th>
<th>
<?=
gettext
(
"Status"
);
?>
</th>
<th>
<?=
gettext
(
"Status"
);
?>
<div
class=
"pull-right"
>
<i
class=
"fa fa-expand"
id=
"collapse_all"
style=
"cursor: pointer;"
data-toggle=
"tooltip"
title=
"
<?=
gettext
(
"collapse/expand all"
);
?>
"
></i>
</div>
</th>
</tr>
</thead>
<tbody>
...
...
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