Commit df44065cc627b205f65428d2187941de0b6f8c42
1 parent
e921c7b5
Exists in
master
and in
3 other branches
created user cloud but I'm not using logging status to query it yet
Showing
3 changed files
with
30 additions
and
2 deletions
Show diff stats
amadeus/static/css/base/amadeus.css
1 | +/* Initial page starts */ | ||
2 | +.users-cloud { | ||
3 | + | ||
4 | + width: 80%; | ||
5 | +} | ||
6 | +.users-cloud li { | ||
7 | + list-style: none; | ||
8 | + display: inline; | ||
9 | +} | ||
1 | 10 | ||
11 | +.users-cloud li:nth-of-type(3n + 1) { | ||
12 | + font-size: 2.25em; | ||
13 | +} | ||
14 | +.users-cloud li:nth-of-type(4n+3) { | ||
15 | + font-size: 3.5em; | ||
16 | +} | ||
17 | +.users-cloud li:nth-of-type(5n - 3) { | ||
18 | + font-size: 3em; | ||
19 | +} | ||
20 | +/* initial page ends */ | ||
2 | /* sidebar menu */ | 21 | /* sidebar menu */ |
3 | 22 | ||
4 | #sidebar-menu{ | 23 | #sidebar-menu{ |
subjects/templates/subjects/initial.html
@@ -2,8 +2,14 @@ | @@ -2,8 +2,14 @@ | ||
2 | 2 | ||
3 | {% block content %} | 3 | {% block content %} |
4 | 4 | ||
5 | - <div id="cloud-users" class="col-md-12"> | ||
6 | - | 5 | + <div id="" class="col-md-12"> |
6 | + <div class="users-cloud"> | ||
7 | + <ul class=" users-cloud"> | ||
8 | + {% for user in users %} | ||
9 | + <li>{{user.social_name}}</li> | ||
10 | + {% endfor %} | ||
11 | + </ul> | ||
12 | + </div> | ||
7 | </div> | 13 | </div> |
8 | <div class="col-md-12 cards-content"> | 14 | <div class="col-md-12 cards-content"> |
9 | <div class="panel-group" id="subject-accordion" role="tablist" aria-multiselectable="true"> | 15 | <div class="panel-group" id="subject-accordion" role="tablist" aria-multiselectable="true"> |
subjects/views.py
@@ -56,6 +56,9 @@ class HomeView(LoginRequiredMixin, ListView): | @@ -56,6 +56,9 @@ class HomeView(LoginRequiredMixin, ListView): | ||
56 | subjects = paginator.page(paginator.num_pages) | 56 | subjects = paginator.page(paginator.num_pages) |
57 | 57 | ||
58 | context['subjects'] = subjects | 58 | context['subjects'] = subjects |
59 | + #bringing users | ||
60 | + users = User.objects.all() | ||
61 | + context['users'] = users | ||
59 | return context | 62 | return context |
60 | 63 | ||
61 | 64 |