Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ops
jumpserver
Commits
374dfbda
Commit
374dfbda
authored
Oct 28, 2016
by
ibuler
Browse files
Options
Browse Files
Download
Plain Diff
Force merge
parents
688bfa55
534321d1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
asset_list.html
apps/assets/templates/assets/asset_list.html
+17
-0
_nav.html
apps/templates/_nav.html
+1
-1
No files found.
apps/assets/templates/assets/asset_list.html
View file @
374dfbda
...
@@ -132,6 +132,7 @@ div.dataTables_wrapper div.dataTables_filter,
...
@@ -132,6 +132,7 @@ div.dataTables_wrapper div.dataTables_filter,
};
//onload;
};
//onload;
$
(
document
).
ready
(
function
(){
$
(
document
).
ready
(
function
(){
<<<<<<<
HEAD
$
(
'#modal'
).
modal
({
$
(
'#modal'
).
modal
({
show
:
false
,
show
:
false
,
backdrop
:
'static'
,
backdrop
:
'static'
,
...
@@ -168,6 +169,22 @@ div.dataTables_wrapper div.dataTables_filter,
...
@@ -168,6 +169,22 @@ div.dataTables_wrapper div.dataTables_filter,
$
(
'#editable_length'
).
before
(
"<a href=
\"
{% url 'assets:asset-create' %}
\"
class=
\"
btn btn-sm btn-primary custom
\"
> {% trans 'Create asset' %} </a> <button class='btn btn-sm btn-primary custom' id='zksx' onclick='tagShow()'>标签</button>"
);
$
(
'#editable_length'
).
before
(
"<a href=
\"
{% url 'assets:asset-create' %}
\"
class=
\"
btn btn-sm btn-primary custom
\"
> {% trans 'Create asset' %} </a> <button class='btn btn-sm btn-primary custom' id='zksx' onclick='tagShow()'>标签</button>"
);
$
(
'#editable'
).
before
(
oTags
);
$
(
'#editable'
).
before
(
oTags
);
},
},
=======
var
oTags
=
document
.
getElementById
(
"ydxbd"
);
var
table
=
$
(
'#editable'
).
DataTable
({
"aLengthMenu"
:
[[
10
,
25
,
50
,
-
1
],
[
"10"
,
"25"
,
"50"
,
"all"
]],
"iDisplayLength"
:
25
,
"aaSorting"
:
[[
7
,
"asc"
]],
"aoColumnDefs"
:
[
{
"bSortable"
:
false
,
"aTargets"
:
[
0
]
}],
"bAutoWidth"
:
false
,
"language"
:
{
"url"
:
"/static/js/plugins/dataTables/i18n/zh-hans.json"
},
"dom"
:
'<"custom">lftip'
,
"initComplete"
:
function
()
{
//alert( 'DataTables has finished its initialisation.' );
$
(
'#editable_length'
).
before
(
"<a href=
\"
{% url 'assets:asset-create' %}
\"
class=
\"
btn btn-sm btn-primary custom
\"
> {% trans 'Create asset' %} </a> <button class='btn btn-sm btn-primary custom' id='zksx' onclick='tagShow()'>标签</button>"
);
$
(
'#editable'
).
before
(
oTags
);
},
>>>>>>>
534321
d1aa42f0853083876b807d0258dafc0b0c
columns
:
[
columns
:
[
{
data
:
"checkbox"
},
{
data
:
"checkbox"
},
{
data
:
"id"
},
{
data
:
"id"
},
...
...
apps/templates/_nav.html
View file @
374dfbda
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</li>
</li>
</ul>
</ul>
</li>
</li>
<li
id=
""
>
<li
id=
"
terminal
"
>
<a
href=
"{% url 'terminal:terminal-list' %}"
>
<a
href=
"{% url 'terminal:terminal-list' %}"
>
<i
class=
"fa fa-desktop"
></i><span
class=
"nav-label"
>
{% trans 'Terminal' %}
</span><span
class=
"label label-info pull-right"
></span>
<i
class=
"fa fa-desktop"
></i><span
class=
"nav-label"
>
{% trans 'Terminal' %}
</span><span
class=
"label label-info pull-right"
></span>
</a>
</a>
...
...
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