forked from coala/community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The redesigned web-page provides a nice UI/UX design to the web-page with "search" feature. Closes coala#259
- Loading branch information
Showing
6 changed files
with
298 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from django.conf.urls import url | ||
|
||
from . import views | ||
from .views import ContributorsMetaReview | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.index, name='index'), | ||
url(r'^$', ContributorsMetaReview.as_view(), name='index'), | ||
] |
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 |
---|---|---|
@@ -1,15 +1,22 @@ | ||
from meta_review.models import Participant | ||
from django.shortcuts import render | ||
from django.db.models import Q | ||
from django.views.generic import TemplateView | ||
|
||
from community.views import get_header_and_footer | ||
|
||
def index(request): | ||
participants = Participant.objects.all().exclude( | ||
Q(pos_in=0), | ||
Q(neg_in=0), | ||
Q(pos_out=0), | ||
Q(neg_out=0), | ||
Q(offset=0) | ||
) | ||
args = {'participants': participants} | ||
return render(request, 'meta_review.html', args) | ||
|
||
class ContributorsMetaReview(TemplateView): | ||
template_name = 'meta_review.html' | ||
|
||
def get_context_data(self, **kwargs): | ||
context = super().get_context_data(**kwargs) | ||
context = get_header_and_footer(context) | ||
participants = Participant.objects.all().exclude( | ||
Q(pos_in=0), | ||
Q(neg_in=0), | ||
Q(pos_out=0), | ||
Q(neg_out=0), | ||
Q(offset=0) | ||
) | ||
context['contributors_meta_review_details'] = participants | ||
return context |
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,96 @@ | ||
.contributor-details-part-1 { | ||
padding-right: 5px; | ||
} | ||
|
||
.contributor-details-part-2 { | ||
padding-left: 5px; | ||
border-left: 1px #37474f solid; | ||
} | ||
|
||
.column-flex { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.received-reactions div { | ||
padding-left: 14px; | ||
} | ||
|
||
.meta-reviewer { | ||
background-color: #c7da99; | ||
width: 580px; | ||
border: 4px #6c9a55 solid; | ||
} | ||
|
||
.metareviewer-details { | ||
display: flex; | ||
width: 66%; | ||
} | ||
|
||
.meta-reviewer-image { | ||
position: relative; | ||
text-align: center; | ||
color: white; | ||
} | ||
|
||
.meta-reviewer-image img{ | ||
border-radius: 30px; | ||
margin: 20px; | ||
width: 150px; | ||
} | ||
|
||
.top-right { | ||
position: absolute; | ||
top: 30px; | ||
right: 25px; | ||
width: 30px; | ||
border-radius: 100%; | ||
background-color: #37474f; | ||
} | ||
|
||
@media only screen and (max-width: 706px){ | ||
.contributors-cards { | ||
margin: 50px 0; | ||
} | ||
.contributor-card { | ||
margin: 0 10px 20px; | ||
min-height: 230px; | ||
} | ||
|
||
.metareviewer-details { | ||
width: 60%; | ||
} | ||
|
||
.meta-reviewer-image { | ||
width: 40%; | ||
} | ||
|
||
.meta-reviewer-image img { | ||
max-width: 80%; | ||
margin: 20px 10px; | ||
} | ||
|
||
@media only screen and (max-width:419px){ | ||
|
||
.metareviewer-details { | ||
width: 100%; | ||
} | ||
|
||
.meta-reviewer { | ||
margin: 0 10px 20px 10px; | ||
} | ||
|
||
.meta-reviewer-image { | ||
width: 100%; | ||
} | ||
|
||
.contributor-details-part-1 { | ||
padding: 0 0 10px 10px; | ||
} | ||
|
||
.top-right { | ||
right: 105px; | ||
} | ||
|
||
} | ||
} |
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
Oops, something went wrong.