Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
PyWebCooking
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
20
Issues
20
List
Boards
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
cooking
PyWebCooking
Commits
fa594917
Commit
fa594917
authored
Oct 29, 2017
by
Floréal Cabanettes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove online and show role of authenticated user instead
parent
f417c5d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
7 deletions
+41
-7
panel/static/css/style_panel.css
panel/static/css/style_panel.css
+33
-2
templates/panel/base.html
templates/panel/base.html
+8
-5
No files found.
panel/static/css/style_panel.css
View file @
fa594917
...
...
@@ -82,10 +82,41 @@ form.top-actions {
background
:
#eaeaea
;
}
.user-panel
p
{
.user-panel1
p
{
display
:
inline-block
;
white-space
:
normal
;
color
:
white
;
font-weight
:
bold
;
font-size
:
12pt
;
margin-bottom
:
0
;
}
.user-panel1
img
{
width
:
45px
;
margin
:
10px
;
}
.user-panel
.pull-left.image
{
.user-panel1
.info
{
width
:
calc
(
100%
-
70px
);
margin-bottom
:
10px
;
margin-top
:
10px
;
}
.user-panel1
.pull-left.image
{
padding-top
:
3px
;
}
.user-panel1
.info
,
.user-panel1
.image
{
display
:
inline-block
;
vertical-align
:
middle
;
}
.user-panel1
.subtitle
{
display
:
block
;
margin-top
:
5px
;
margin-left
:
10px
;
}
.user-panel1
.subtitle
i
{
padding-right
:
3px
;
}
\ No newline at end of file
templates/panel/base.html
View file @
fa594917
...
...
@@ -198,15 +198,18 @@
<section
class=
"sidebar"
>
<!-- Sidebar user panel (optional) -->
<div
class=
"user-panel"
>
<div
class=
"
pull-left
image"
>
<div
class=
"user-panel
1
"
>
<div
class=
"image"
>
<img
src=
"{{ avatar }}"
class=
"img-circle"
alt=
"User Image"
>
</div>
<div
class=
"
pull-left
info"
>
<div
class=
"info"
>
<p>
{{ user_name }}
</p>
<!-- Status -->
<a
href=
"#"
><i
class=
"fa fa-circle text-success"
></i>
{% trans "Online" %}
</a>
{% if staff %}
<br/><span
class=
"subtitle"
><a
href=
"#"
><i
class=
"fa fa-circle text-red"
></i>
{% trans "Staff" %}
</a></span>
{% else %}
<br/><span
class=
"subtitle"
><a
href=
"#"
><i
class=
"fa fa-circle text-green"
></i>
{% trans "Editor" %}
</a></span>
{% endif %}
</div>
</div>
...
...
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