Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
4573b778
Commit
4573b778
authored
Nov 19, 2019
by
Ulises Morales Ramírez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
impersonate
parent
a8f8ebc1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
users_table.html
administration/templates/users_table.html
+1
-1
base_top.css
catalog/static/catalog/css/base_top.css
+7
-2
base_top.html
catalog/templates/base_top.html
+11
-2
No files found.
administration/templates/users_table.html
View file @
4573b778
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
</td>
</td>
<td>
<td>
{% if not user.superuser and request.user.is_superuser %}
{% if not user.superuser and request.user.is_superuser %}
<a
title=
"
swithc user
"
href=
"{% url 'impersonate-start' user.user_id %}"
class=
"btn btn-warning"
><i
<a
title=
"
Impersonate
"
href=
"{% url 'impersonate-start' user.user_id %}"
class=
"btn btn-warning"
><i
class=
"fa fa-eye"
></i></a>
class=
"fa fa-eye"
></i></a>
{% endif %}
{% endif %}
<button
title=
"save"
type=
"submit"
class=
"btn btn-success"
><i
<button
title=
"save"
type=
"submit"
class=
"btn btn-success"
><i
...
...
catalog/static/catalog/css/base_top.css
View file @
4573b778
view_as
{
view_as
{
color
:
navy
;
color
:
navy
;
}
}
.alert2
{
.alert2
{
margin-bottom
:
0px
!important
;
margin-bottom
:
0px
!important
;
margin-top
:
0px
!important
;
margin-top
:
0px
!important
;
background-color
:
rgba
(
255
,
0
,
0
,
0.5
);
background-color
:
rgba
(
255
,
0
,
0
,
0.5
);
text-align
:
center
;
text-align
:
center
;
}
ul
#menu
li
{
display
:
inline
;
padding-right
:
5px
;
}
}
\ No newline at end of file
catalog/templates/base_top.html
View file @
4573b778
...
@@ -130,9 +130,18 @@
...
@@ -130,9 +130,18 @@
<!-- Content Wrapper. Contains page content -->
<!-- Content Wrapper. Contains page content -->
<div
class=
"content-wrapper"
style=
"border:0px solid blue;"
>
<div
class=
"content-wrapper"
style=
"border:0px solid blue;"
>
{% if user.is_impersonate %}
{% if user.is_impersonate %}
<div
class=
"alert alert2 alert-dismissible "
>
<div
class=
"alert alert2 alert-dismissible "
>
<a
href=
"{% url 'impersonate-stop' %}"
class=
"close"
data-dismiss=
"alert"
aria-label=
"close"
>
×
</a>
<a
href=
"{% url 'impersonate-stop' %}"
class=
"close"
data-dismiss=
"alert"
aria-label=
"close"
>
×
</a>
<strong>
View as:
</strong>
{{ user.get_full_name }}
<ul
id=
"menu"
>
<li><i
class=
"fa fa-eye"
></i></li>
<li><strong>
View as:
</strong></li>
<li>
{{ user.username }}
</li>
<li><strong>
Full Name:
</strong></li>
<li>
{{ user.get_full_name }}
</li>
<li><strong>
E-mail:
</strong></li>
<li>
{{ user.email }}
</li>
</ul>
</div>
</div>
{% endif %}
{% endif %}
...
...
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