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
c9e9b4dd
Commit
c9e9b4dd
authored
Apr 05, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Apr 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(trafficshaper) add quick tab navigation
(cherry picked from commit
23f14082
)
parent
5873807f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
Menu.xml
...sense/mvc/app/models/OPNsense/TrafficShaper/Menu/Menu.xml
+5
-1
index.volt
src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt
+7
-0
No files found.
src/opnsense/mvc/app/models/OPNsense/TrafficShaper/Menu/Menu.xml
View file @
c9e9b4dd
<menu>
<menu>
<Firewall>
<Firewall>
<TrafficShaper
order=
"40"
VisibleName=
"Traffic Shaper"
cssClass=
"fa fa-filter fa-fw"
>
<TrafficShaper
order=
"40"
VisibleName=
"Traffic Shaper"
cssClass=
"fa fa-filter fa-fw"
>
<Settings
order=
"10"
url=
"/ui/trafficshaper/"
/>
<Settings
order=
"10"
url=
"/ui/trafficshaper/"
>
<Pipes
VisibleName=
"Pipes"
url=
"/ui/trafficshaper/#pipes"
/>
<Queues
VisibleName=
"Queues"
url=
"/ui/trafficshaper/#queues"
/>
<Rules
VisibleName=
"Rules"
url=
"/ui/trafficshaper/#rules"
/>
</Settings>
<Status
order=
"20"
url=
"/diag_limiter_info.php"
/>
<Status
order=
"20"
url=
"/diag_limiter_info.php"
/>
</TrafficShaper>
</TrafficShaper>
</Firewall>
</Firewall>
...
...
src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt
View file @
c9e9b4dd
...
@@ -93,6 +93,13 @@ POSSIBILITY OF SUCH DAMAGE.
...
@@ -93,6 +93,13 @@ POSSIBILITY OF SUCH DAMAGE.
});
});
});
});
// update history on tab state and implement navigation
if (window.location.hash != "") {
$('a[href="' + window.location.hash + '"]').click()
}
$('.nav-tabs a').on('shown.bs.tab', function (e) {
history.pushState(null, null, e.target.hash);
});
});
});
...
...
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