Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a3222eb5
authored
Apr 08, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: make the template choose more magical
parent
01205932
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
6 deletions
+22
-6
circle/dashboard/static/dashboard/dashboard.css
+3
-5
circle/dashboard/static/dashboard/dashboard.js
+18
-0
circle/dashboard/templates/dashboard/index-templates.html
+1
-1
No files found.
circle/dashboard/static/dashboard/dashboard.css
View file @
a3222eb5
...
...
@@ -428,10 +428,6 @@ footer a, footer a:hover, footer a:visited {
max-width
:
600px
;
}
.template-choose-list-element
{
cursor
:
pointer
;
}
.template-choose-list-element
small
{
display
:
none
;
float
:
right
;
...
...
@@ -439,7 +435,9 @@ footer a, footer a:hover, footer a:visited {
}
.template-choose-list-element
{
padding
:
15px
;
padding
:
6px
10px
;
cursor
:
pointer
;
margin-bottom
:
15px
;
/* bootstrap panel default is 20px */
}
.template-choose-list
input
[
type
=
"radio"
]
{
...
...
circle/dashboard/static/dashboard/dashboard.js
View file @
a3222eb5
...
...
@@ -36,6 +36,24 @@ $(function () {
});
return
false
;
});
$
(
'.template-choose'
).
click
(
function
(
e
)
{
$
.
ajax
({
type
:
'GET'
,
url
:
'/dashboard/template/choose/'
,
success
:
function
(
data
)
{
$
(
'body'
).
append
(
data
);
vmCreateLoaded
();
addSliderMiscs
();
$
(
'#create-modal'
).
modal
(
'show'
);
$
(
'#create-modal'
).
on
(
'hidden.bs.modal'
,
function
()
{
$
(
'#create-modal'
).
remove
();
});
}
});
return
false
;
});
$
(
'[href=#index-graph-view]'
).
click
(
function
(
e
)
{
var
box
=
$
(
this
).
data
(
'index-box'
);
$
(
"#"
+
box
+
"-list-view"
).
hide
();
...
...
circle/dashboard/templates/dashboard/index-templates.html
View file @
a3222eb5
...
...
@@ -25,7 +25,7 @@
<a
href=
"{% url "
dashboard
.
views
.
template-list
"
%}"
class=
"btn btn-primary btn-xs"
>
<i
class=
"icon-chevron-sign-right"
></i>
{% trans "show all" %}
</a>
<a
href=
"{% url "
dashboard
.
views
.
template-choose
"
%}"
class=
"btn btn-success btn-xs"
>
<a
href=
"{% url "
dashboard
.
views
.
template-choose
"
%}"
class=
"btn btn-success btn-xs
template-choose
"
>
<i
class=
"icon-plus-sign"
></i>
{% trans "new" %}
</a>
</p>
...
...
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