-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The webpage will be displaying all the organization teams, to the authenticated users only. If tried to access w/o auth, the user will be redirected to homepage with an error message. Closes #287
- Loading branch information
Showing
8 changed files
with
148 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 2.1.7 on 2019-08-02 07:45 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('data', '0007_auto_20190802_2015'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='team', | ||
name='description', | ||
field=models.TextField(default=None, max_length=500, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='increased_count', | ||
field=models.PositiveSmallIntegerField(default=0), | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='members_count', | ||
field=models.PositiveSmallIntegerField(default=0), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.light-green-color { | ||
color: green; | ||
} | ||
|
||
.organization-teams { | ||
margin: auto; | ||
width: 60%; | ||
min-width: 330px; | ||
} | ||
|
||
.team-name { | ||
font-size: 1.5em; | ||
} | ||
|
||
.team-desc { | ||
padding-left: 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{% extends 'base.html' %} | ||
{% load staticfiles %} | ||
|
||
{% block add_css_files %} | ||
<link rel="stylesheet" href="{% static 'css/teams.css' %}"> | ||
{% endblock %} | ||
|
||
{% block main-content %} | ||
<div class="web-page-details apply-flex center-content"> | ||
<h3 style="padding-right: 15px">~</h3> | ||
<h3 class="page-name"> | ||
<img src="{{ org.logo_url }}" alt="{{ org.name }}"> | ||
Organization Teams | ||
</h3> | ||
<h3 style="padding-left: 15px">~</h3> | ||
</div> | ||
<div class="organization-teams"> | ||
<table class="highlight"> | ||
<thead> | ||
<tr class="custom-green-color-font"> | ||
<th><h5>Team</h5></th> | ||
<th class="text-center"><h5>No. of Members</h5></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for team in object_list %} | ||
<tr> | ||
<td> | ||
<div> | ||
<h6 class="team-name">{{ team.name }}</h6> | ||
<p class="team-desc"><em>{{ team.description }}</em></p> | ||
</div> | ||
</td> | ||
<td class="text-center bold-text"> | ||
{{ team.members_count }} | ||
{% if team.increased_count > 0 %} | ||
(<i class="fa fa-arrow-up light-green-color" | ||
aria-hidden="true"> | ||
</i> | ||
{{ team.increased_count }} members) | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<p class="custom-green-color-font">Note: The increased members count | ||
refreshes every week.</p> | ||
</div> | ||
|
||
{% endblock %} |