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
44baa975
Commit
44baa975
authored
Dec 03, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firmware: fix small regression from refactoring backend
parent
214385bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
firmware.volt
src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt
+5
-5
No files found.
src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt
View file @
44baa975
...
@@ -312,7 +312,7 @@ POSSIBILITY OF SUCH DAMAGE.
...
@@ -312,7 +312,7 @@ POSSIBILITY OF SUCH DAMAGE.
"<th>{{ lang._('Comment') }}</th><th></th></tr>");
"<th>{{ lang._('Comment') }}</th><th></th></tr>");
var local_count = 0;
var local_count = 0;
var
remote
_count = 0;
var
plugin
_count = 0;
var changelog_count = 0;
var changelog_count = 0;
var changelog_max = 12;
var changelog_max = 12;
if ($.changelog_keep_full != undefined) {
if ($.changelog_keep_full != undefined) {
...
@@ -320,9 +320,6 @@ POSSIBILITY OF SUCH DAMAGE.
...
@@ -320,9 +320,6 @@ POSSIBILITY OF SUCH DAMAGE.
}
}
$.each(data['package'], function(index, row) {
$.each(data['package'], function(index, row) {
if (row['provided'] == "1") {
remote_count += 1;
}
if (row['installed'] == "1") {
if (row['installed'] == "1") {
local_count += 1;
local_count += 1;
} else {
} else {
...
@@ -360,6 +357,9 @@ POSSIBILITY OF SUCH DAMAGE.
...
@@ -360,6 +357,9 @@ POSSIBILITY OF SUCH DAMAGE.
}
}
$.each(data['plugin'], function(index, row) {
$.each(data['plugin'], function(index, row) {
if (row['provided'] == "1") {
plugin_count += 1;
}
orphaned_text = '';
orphaned_text = '';
if (row['provided'] == "0") {
if (row['provided'] == "0") {
orphaned_text = ' ({{ lang._('orphaned') }})';
orphaned_text = ' ({{ lang._('orphaned') }})';
...
@@ -382,7 +382,7 @@ POSSIBILITY OF SUCH DAMAGE.
...
@@ -382,7 +382,7 @@ POSSIBILITY OF SUCH DAMAGE.
);
);
});
});
if (
remote
_count == 0) {
if (
plugin
_count == 0) {
$('#pluginlist').append(
$('#pluginlist').append(
'<tr><td colspan=5>{{ lang._('Check for updates to view available plugins.') }}</td></tr>'
'<tr><td colspan=5>{{ lang._('Check for updates to view available plugins.') }}</td></tr>'
);
);
...
...
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