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
d54b9530
Commit
d54b9530
authored
Mar 08, 2019
by
Ulises Morales Ramírez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user profile
parent
60fb3c34
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
321 additions
and
250 deletions
+321
-250
User_profile.html
users/templates/User_profile.html
+90
-102
profile.html
users/templates/profile.html
+40
-48
urls.py
users/urls.py
+1
-0
views.py
users/views.py
+190
-100
No files found.
users/templates/User_profile.html
View file @
d54b9530
This diff is collapsed.
Click to expand it.
users/templates/profile.html
View file @
d54b9530
{% load staticfiles %}
{% for data in user_data %}
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
{% for data in user_data %}
<!-- Profile Image -->
<div
class=
"box box-primary"
>
<div
class=
"box-body box-profile"
>
<br>
<img
class=
"profile-user-img img-responsive img-circle"
src=
"{% static 'users/images/user_default.png' %}"
alt=
"User profile picture"
>
<h3
class=
"profile-username text-center"
>
{{ data.user_fullname }}
</h3>
<input
type=
"hidden"
id=
"user_id"
value=
"{{ data.user_id }}"
>
<p
class=
"text-muted text-center"
>
Software Engineer
</p>
<ul
class=
"list-group list-group-unbordered"
>
<li
class=
"list-group-item"
>
<b>
Searches
</b>
<a
class=
"pull-right"
>
{{ data.searches }}
</a>
<i
class=
"fa fa-search margin-r-5"
></i>
<b>
Searches
</b>
<a
class=
"pull-right"
>
{{ data.searches }}
</a>
</li>
<li
class=
"list-group-item"
>
<b>
Purchases
</b>
<a
class=
"pull-right"
>
{{ data.purchases }}
</a>
<i
class=
"fa fa-shopping-cart margin-r-5"
></i>
<b>
Purchases
</b>
<a
class=
"pull-right"
>
{{ data.purchases }}
</a>
</li>
<li
class=
"list-group-item"
>
<b>
In Process
</b>
<a
class=
"pull-right"
>
{{ data.in_process }}
</a>
<i
class=
"fa fa-download margin-r-5"
></i>
<b>
In Process
</b>
<a
class=
"pull-right"
>
{{ data.in_process }}
</a>
</li>
<li
class=
"list-group-item"
>
<i
class=
"fa fa-pie-chart margin-r-5"
></i>
<b>
Disk usage
</b>
<a
class=
"pull-right"
>
{{ data.size }}
</a>
</li>
</ul>
...
...
@@ -28,50 +37,33 @@
<!-- /.box-body -->
</div>
<!-- /.box -->
{% endfor %}
<div>
<br>
</div>
<!-- About Me Box -->
<div
class=
"box box-primary"
>
<div
class=
"box-header with-border"
>
<h3
class=
"box-title"
>
About Me
</h3>
<h3
class=
"box-title"
>
Searches
</h3>
</div>
<!-- /.box-header -->
<div
class=
"box-body"
>
<strong><i
class=
"fa fa-book margin-r-5"
></i>
Education
</strong>
<p
class=
"text-muted"
>
B.S. in Computer Science from the University of Tennessee at Knoxville
</p>
<hr>
<strong><i
class=
"fa fa-map-marker margin-r-5"
></i>
Location
</strong>
<p
class=
"text-muted"
>
Malibu, California
</p>
<hr>
<strong><i
class=
"fa fa-pencil margin-r-5"
></i>
Skills
</strong>
<p>
<span
class=
"label label-danger"
>
UI Design
</span>
<span
class=
"label label-success"
>
Coding
</span>
<span
class=
"label label-info"
>
Javascript
</span>
<span
class=
"label label-warning"
>
PHP
</span>
<span
class=
"label label-primary"
>
Node.js
</span>
</p>
<hr>
<strong><i
class=
"fa fa-file-text-o margin-r-5"
></i>
Notes
</strong>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam fermentum enim neque.
</p>
<ul
class=
"list-group list-group-unbordered"
>
{% for data in user_searches %}
<li
class=
"list-group-item"
>
<i
class=
"fa fa-map-marker margin-r-5"
></i>
<b>
{{ data.search_name }}
</b>
<a
class=
"pull-right"
>
{{ data.count }}
</a>
</li>
{% endfor %}
</ul>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
<div><br></div>
</div>
</div>
{% endfor %}
\ No newline at end of file
users/urls.py
View file @
d54b9530
...
...
@@ -26,5 +26,6 @@ from users import views
urlpatterns
=
[
url
(
r'^$'
,
views
.
Users
,
name
=
'users'
),
url
(
r'^(?P<user_id>(\d+))/$'
,
views
.
User_id
,
name
=
'user_id'
),
url
(
r'^ws/report_table$'
,
views
.
wsPurchasesPM
,
name
=
'wsPurchasesPM'
),
]
# + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
users/views.py
View file @
d54b9530
This diff is collapsed.
Click to expand it.
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