diff --git a/.gitignore b/.gitignore index a5292837a..d2a6864eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ # CodaLab Files # ################# codalab/config/generated -codalab/static/*/* +codalab/static/**/** +codalab/media/**/** /bundles/* # Virtuelenv files # diff --git a/codalab/apps/api/views.py b/codalab/apps/api/views.py index 072c6f508..92d3ee18c 100644 --- a/codalab/apps/api/views.py +++ b/codalab/apps/api/views.py @@ -1,3 +1,4 @@ +import json from . import serializers from rest_framework import (viewsets,views,permissions) from rest_framework.decorators import action,link @@ -12,16 +13,21 @@ class CompetitionAPIViewSet(viewsets.ModelViewSet): serializer_class = serializers.CompetitionSerial queryset = webmodels.Competition.objects.all() - @action(permission_classes=[permissions.IsAuthenticated]) def participate(self,request,pk=None): comp = self.get_object() + terms = request.DATA['agreed_terms'] status = webmodels.ParticipantStatus.objects.get(codename='pending') p,cr = webmodels.CompetitionParticipant.objects.get_or_create(user=self.request.user, competition=comp, defaults={'status': status, 'reason': None}) - return Response(status=(201 if cr else 200)) + response_data = { + 'result' : 201 if cr else 200, + 'id' : p.id + } + + return Response(json.dumps(response_data), content_type="application/json") def _get_userstatus(self,request,pk=None,participant_id=None): comp = self.get_object() @@ -41,23 +47,29 @@ def mystatus(self,request,pk=None): @action(methods=['POST','PUT'], permission_classes=[permissions.IsAuthenticated]) def participation_status(self,request,pk=None): + print "made it into handler" comp = self.get_object() resp = {} status = request.DATA['status'] part = request.DATA['participant_id'] reason = request.DATA['reason'] + try: - p = webmodels.CompetitionParticipant.objects.get(competition=comp, - pk=part) + p = webmodels.CompetitionParticipant.objects.get(competition=comp, pk=part) p.status = webmodels.ParticipantStatus.objects.get(codename=status) p.reason = reason p.save() - except ObjectDoesNotExist as e: - return Response(status=400) - resp = { 'status': status, - 'participantId': part, - 'reason': reason } - return Response(resp,status=200) + resp = { + 'status': status, + 'participantId': part, + 'reason': reason + } + except ObjectDoesNotExist as e: + resp = { + 'status' : 400 + } + + return Response(json.dumps(resp), content_type="application/json") @action(permission_classes=[permissions.IsAuthenticated] @@ -191,9 +203,7 @@ def pre_save(self,obj): if not obj.participant: obj.participant = self.request.user - - @action( permission_classes=[permissions.IsAuthenticated] - ) + @action(permission_classes=[permissions.IsAuthenticated]) def leaderboard(self, request, pk=None,competition_id=None): submission = self.get_object() if True or submission.phase.is_active: diff --git a/codalab/apps/web/models.py b/codalab/apps/web/models.py index 8dc11b45c..ac3e5d06e 100644 --- a/codalab/apps/web/models.py +++ b/codalab/apps/web/models.py @@ -34,6 +34,7 @@ def __unicode__(self): class DefaultContentItem(models.Model): category = TreeForeignKey(ContentCategory) label = models.CharField(max_length=100) + codename = models.SlugField(max_length=100,unique=True) rank = models.IntegerField(default=0) required = models.BooleanField(default=False) initial_visibility = models.ForeignKey(ContentVisibility) @@ -60,6 +61,7 @@ def save(self,*args,**kwargs): class Page(models.Model): category = TreeForeignKey(ContentCategory) defaults = models.ForeignKey(DefaultContentItem, null=True, blank=True) + codename = models.SlugField(max_length=100,unique=True) container = models.ForeignKey(PageContainer, related_name='pages') title = models.CharField(max_length=100, null=True, blank=True) label = models.CharField(max_length=100) @@ -116,22 +118,15 @@ def __unicode__(self): return self.name # End External File Models - # Join+ Model for Participants of a competition class ParticipantStatus(models.Model): name = models.CharField(max_length=30) codename = models.CharField(max_length=30,unique=True) description = models.CharField(max_length=50) - - def __unicode__(self): return self.name -class CompetitionPageSection(models.Model): - title = models.CharField(max_length=32) - slug = models.CharField(max_length=16) - class Competition(models.Model): """ This is the base competition. """ title = models.CharField(max_length=100) @@ -144,7 +139,6 @@ class Competition(models.Model): modified_by = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='competitioninfo_modified_by') last_modified = models.DateTimeField(auto_now_add=True) pagecontent = models.ForeignKey(PageContainer,null=True,blank=True) - page_sections = models.ManyToManyField(CompetitionPageSection) class Meta: permissions = ( @@ -175,12 +169,6 @@ def image_url(self): def is_active(self): return self.end_date < now().date() -class CompetitionPageSubSection(models.Model): - title = models.CharField(max_length=32) - content = models.TextField(null=True, blank=True) - slug = models.CharField(max_length=16) - section = models.ForeignKey(CompetitionPageSection, related_name='sections') - # Dataset model class Dataset(models.Model): """ diff --git a/codalab/apps/web/static/foundation/css/codalab.css b/codalab/apps/web/static/foundation/css/codalab.css index a5b428cc3..3b6845eb4 100644 --- a/codalab/apps/web/static/foundation/css/codalab.css +++ b/codalab/apps/web/static/foundation/css/codalab.css @@ -63,46 +63,153 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, display: block; } -/* line 37, ../sass/_settings.scss */ +/* line 64, ../sass/_settings.scss */ * { font-family: Segoe UI,'Segoe UI', Helvetica, Arial,'Trebuchet MS',sans-serif; font-size: 100%; font-weight: normal; } -/* line 43, ../sass/_settings.scss */ +/* line 70, ../sass/_settings.scss */ +select { + color: #333333; +} + +/* line 74, ../sass/_settings.scss */ +form textarea { + color: #333333; + font-size: 16px; +} + +/* line 79, ../sass/_settings.scss */ +.menu-icon { + background: #3684d6; +} + +/* line 83, ../sass/_settings.scss */ +.menu-icon > span, .menu-icon > span a, .menu-icon > span a:hover { + border-bottom-style: none; + border: 0px; + padding: 2px; +} + +/* line 89, ../sass/_settings.scss */ +span.has-tip { + border-bottom: 0px; +} + +/* line 93, ../sass/_settings.scss */ +div.CompetitionsDetailContainer div.section-container section:not(.active) p a:hover { + color: #ffac31; +} + +/* line 97, ../sass/_settings.scss */ +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container section p.title { + background: transparent; +} + +/* line 101, ../sass/_settings.scss */ +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container section.active div.content { + border: 0px; +} + +/* line 105, ../sass/_settings.scss */ +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container section p.title a { + padding: 2px; + text-align: right; + border: 0px; +} + +/* line 111, ../sass/_settings.scss */ +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container section p { + border: 0px; +} + +/* line 115, ../sass/_settings.scss */ +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container div.content { + margin-left: 10px; + font-size: 13px; +} + +/* line 120, ../sass/_settings.scss */ +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container div.content ul { + list-style: disc; + margin-left: 20px; +} + +/* line 125, ../sass/_settings.scss */ +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container section.active div.content em { + font-size: 13px; +} + +/* line 129, ../sass/_settings.scss */ +td > a > i { + color: #3684d6; +} + +/* line 133, ../sass/_settings.scss */ +a > i { + height: 100%; + color: white; +} + +/* line 138, ../sass/_settings.scss */ +.competitionsDetailTabArea > section > .title { + font-size: 19px; + font-weight: 400; +} + +/* line 143, ../sass/_settings.scss */ +.competitionsDetailTabArea > section > .title a:hover { + color: #ffac31; +} + +/* line 147, ../sass/_settings.scss */ +.process_participant_request { + padding-top: 10px; +} + +/* line 152, ../sass/_settings.scss */ +.competitionUserBlock { + border: solid 1px #ccc; + margin-bottom: 10px; + position: relative; + padding: 0; +} + +/* line 159, ../sass/_settings.scss */ .user_results, .competition_results { padding-top: 10px; } -/* line 46, ../sass/_settings.scss */ +/* line 163, ../sass/_settings.scss */ .globalBlueButton a, .globalBlueButton a:hover { color: white; } -/* line 50, ../sass/_settings.scss */ +/* line 167, ../sass/_settings.scss */ .content > h3 { font-size: 14px; font-weight: 700; } -/* line 55, ../sass/_settings.scss */ +/* line 172, ../sass/_settings.scss */ .content > p { font-size: 13px; } -/* line 59, ../sass/_settings.scss */ +/* line 176, ../sass/_settings.scss */ .section-container.vertical-tabs > section > .content { border: 0px; color: #3b3b3b; } -/* line 64, ../sass/_settings.scss */ +/* line 181, ../sass/_settings.scss */ .competitionProcessHeader > ul > li { height: 100%; } -/* line 67, ../sass/_settings.scss */ +/* line 185, ../sass/_settings.scss */ .competitionProcessHeader > ul > li > a { color: white; font-size: 13px; @@ -110,21 +217,21 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, padding-right: 40px; } -/* line 74, ../sass/_settings.scss */ +/* line 192, ../sass/_settings.scss */ .competition-preview { border: 1px solid #cccccc; margin-top: 5px; margin-bottom: 5px; } -/* line 80, ../sass/_settings.scss */ +/* line 198, ../sass/_settings.scss */ .competition-summary { background: #fafafa; height: 100px; overflow: hidden; } -/* line 86, ../sass/_settings.scss */ +/* line 204, ../sass/_settings.scss */ .competition-preview > .columns > .button.small { vertical-align: middle; margin-bottom: 5px; @@ -134,13 +241,13 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, border-color: #ffac31; } -/* line 95, ../sass/_settings.scss */ +/* line 213, ../sass/_settings.scss */ .competition-summary > .columns { margin: 0px; padding: 0px; } -/* line 100, ../sass/_settings.scss */ +/* line 218, ../sass/_settings.scss */ .competition-label { height: 100px; background: #3684d6; @@ -149,7 +256,7 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, padding-left: 0px; } -/* line 108, ../sass/_settings.scss */ +/* line 226, ../sass/_settings.scss */ .competition-image { padding: 0px; margin: 0px; @@ -157,33 +264,33 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, vertical-align: middle; } -/* line 115, ../sass/_settings.scss */ +/* line 233, ../sass/_settings.scss */ .competition-info .columns { padding: 0px; margin: 0px; } -/* line 119, ../sass/_settings.scss */ +/* line 238, ../sass/_settings.scss */ .competition-title { color: #333333; text-align: left; font-size: 15px; } -/* line 125, ../sass/_settings.scss */ +/* line 244, ../sass/_settings.scss */ .large-12 > .competition-label { margin: 0px; padding: 0px; width: 30px; } -/* line 131, ../sass/_settings.scss */ +/* line 250, ../sass/_settings.scss */ .competition-description, .competition-owner { font-size: small; color: #999999; } -/* line 136, ../sass/_settings.scss */ +/* line 255, ../sass/_settings.scss */ .slider { color: white; font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; @@ -192,33 +299,33 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, position: relative; text-align: center; background: #D7CDBF; - padding-top: 105px; + padding-top: 70px; margin: 0 auto; width: 100%; min-height: 200px; vertical-align: middle; } -/* line 151, ../sass/_settings.scss */ +/* line 270, ../sass/_settings.scss */ .subheader { height: auto; padding-bottom: 10px; } -/* line 156, ../sass/_settings.scss */ +/* line 275, ../sass/_settings.scss */ #footer, #footer a, #footer a:hover { font-size: small; background: #3684d6; color: white; } -/* line 162, ../sass/_settings.scss */ +/* line 281, ../sass/_settings.scss */ .topbar-title { font-size: x-large; font-weight: light; } -/* line 167, ../sass/_settings.scss */ +/* line 286, ../sass/_settings.scss */ .header { position: fixed; left: 0; @@ -227,48 +334,227 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, z-index: 1000; } -/* line 175, ../sass/_settings.scss */ +/* line 294, ../sass/_settings.scss */ .container { padding-top: 45px; padding-bottom: 20px; } -/* line 180, ../sass/_settings.scss */ -.competition-paragraph { - font-size: 12px; +/* line 299, ../sass/_settings.scss */ +p.competition-paragraph { + font-size: 11px; color: #666666; - line-height: 16px; + line-height: 15px; + margin-bottom: 0; } -/* line 186, ../sass/_settings.scss */ +/* line 306, ../sass/_settings.scss */ .competition-info { height: 90px; overflow: hidden; padding-top: 5px; } -/* line 192, ../sass/_settings.scss */ +/* line 312, ../sass/_settings.scss */ .competition-image > img { height: 90px; margin-top: 5px; } -/* line 197, ../sass/_settings.scss */ +/* line 317, ../sass/_settings.scss */ .competition-preview.panel { background: #fafafa; } -/* line 201, ../sass/_settings.scss */ +/* line 321, ../sass/_settings.scss */ .competition-tile { margin-bottom: 10px; } -/* line 205, ../sass/_settings.scss */ +/* line 325, ../sass/_settings.scss */ .competition-tile h3 { font-size: 16px; color: #333333; } +/* line 330, ../sass/_settings.scss */ +.articleHeadingContainer h3 { + margin: 0; + line-height: 100%; +} + +/* line 335, ../sass/_settings.scss */ +.articleHeadingContainer label { + color: #a4a4a4; + margin-top: 4px; + margin-bottom: 14px; + font-size: 12px; +} + +/* line 342, ../sass/_settings.scss */ +.signin-centered-container { + margin: auto !important; + float: none !important; + background: #eff2f9; + padding: 25px; +} + +/* line 349, ../sass/_settings.scss */ +.small-6.pull-6.columns > .globalBlueButton { + float: right; +} + +/* line 353, ../sass/_settings.scss */ +.signin-formfields p:nth-child(3) > input { + float: left; + position: relative; + top: -20px; +} + +/* line 359, ../sass/_settings.scss */ +.signin-formfields p:nth-child(3) > label { + padding-left: 20px; +} + +/* line 363, ../sass/_settings.scss */ +.globalBlueButton, .globalBlueButtonBig, .globalBlueButtonInput, .globalBlueButtonAtag > a, .globalBlueButtonSmallAtag > a, .globalBlueButtonSmall, .globalBlueButtonSmallFlexi, .buttonAccept { + box-shadow: none; + white-space: nowrap; +} + +/* line 368, ../sass/_settings.scss */ +.signin-centered-container > p > a { + display: inline-block; +} + +/* line 372, ../sass/_settings.scss */ +ul.side-nav { + padding-top: 0; + position: fixed; +} +/* line 375, ../sass/_settings.scss */ +ul.side-nav li { + margin-bottom: 2px; +} +/* line 378, ../sass/_settings.scss */ +ul.side-nav li a { + color: #3684d6 !important; + font-size: 15px !important; +} +/* line 380, ../sass/_settings.scss */ +ul.side-nav li a:hover { + color: #ffac31; +} +/* line 381, ../sass/_settings.scss */ +ul.side-nav li a:active { + background: none; +} +/* line 383, ../sass/_settings.scss */ +ul.side-nav li.active a { + color: #666666 !important; +} + +/* line 389, ../sass/_settings.scss */ +.glossary-page-container h6, competitions-block-Styling h6, .section-container.vertical-tabs .content h6 { + font-size: 14px; + color: #666666; +} +/* line 394, ../sass/_settings.scss */ +.glossary-page-container p, competitions-block-Styling p, .section-container.vertical-tabs .content p { + font-size: 12px; + color: #666666; +} +/* line 399, ../sass/_settings.scss */ +.glossary-page-container ol, competitions-block-Styling ol, .section-container.vertical-tabs .content ol { + font-size: 13px; + color: #666666; +} +/* line 402, ../sass/_settings.scss */ +.glossary-page-container ol li, competitions-block-Styling ol li, .section-container.vertical-tabs .content ol li { + padding-bottom: 10px; + list-style-type: disc; +} +/* line 408, ../sass/_settings.scss */ +.glossary-page-container ul, competitions-block-Styling ul, .section-container.vertical-tabs .content ul { + font-size: 13px; + color: #666666; + margin-left: 20px; +} +/* line 413, ../sass/_settings.scss */ +.glossary-page-container ul li, competitions-block-Styling ul li, .section-container.vertical-tabs .content ul li { + padding-bottom: 10px; + list-style-type: disc; +} +/* line 419, ../sass/_settings.scss */ +.glossary-page-container pre, competitions-block-Styling pre, .section-container.vertical-tabs .content pre { + padding: 10px; + background: #ebf2fb; + margin-bottom: 15px; +} +/* line 425, ../sass/_settings.scss */ +.glossary-page-container a, competitions-block-Styling a, .section-container.vertical-tabs .content a { + color: #3684d6; +} +/* line 429, ../sass/_settings.scss */ +.glossary-page-container b, competitions-block-Styling b, .section-container.vertical-tabs .content b { + color: #666666; +} + +/* line 435, ../sass/_settings.scss */ +div.auto.section-container > section > .title a, .auto.section-container > .section > .title a { + background: white; + padding-left: 40px !important; + padding-right: 40px !important; + font-size: 19px; +} + +/* line 443, ../sass/_settings.scss */ +.auto.section-container > section > .content, .auto.section-container > .section > .content, .vertical-tabs.section-container > section > .content, .vertical-tabs.section-container > .section > .content { + background: #f8f8f8 !important; +} + +/* line 447, ../sass/_settings.scss */ +.auto.section-container > section.active > .title { + border-bottom: solid 1px #f8f8f8 !important; +} +/* line 449, ../sass/_settings.scss */ +.auto.section-container > section.active > .title a { + background: #f8f8f8 !important; +} + +/* line 455, ../sass/_settings.scss */ +.section-container.vertical-tabs .content { + padding-top: 1px !important; +} +/* line 458, ../sass/_settings.scss */ +.section-container.vertical-tabs .content p { + color: #3b3b3b; + font-size: 13px; + line-height: 22px; +} +/* line 463, ../sass/_settings.scss */ +.section-container.vertical-tabs .CompetitionsDetailLftUl { + margin-bottom: 2px; +} +/* line 466, ../sass/_settings.scss */ +.section-container.vertical-tabs .CompetitionsDetailLftUl a { + color: #3684d6 !important; + font-size: 15px !important; +} +/* line 468, ../sass/_settings.scss */ +.section-container.vertical-tabs .CompetitionsDetailLftUl a:hover { + color: #ffac31 !important; +} +/* line 469, ../sass/_settings.scss */ +.section-container.vertical-tabs .CompetitionsDetailLftUl a:active { + background: none !important; +} +/* line 473, ../sass/_settings.scss */ +.section-container.vertical-tabs .active a { + color: #666666 !important; + font-weight: bold; +} + /* font-face */ @font-face { font-family: "GeneralFoundicons"; @@ -4465,7 +4751,7 @@ label.error { .section-container.accordion > section > .title a, .section-container.accordion > .section > .title a { padding: 0.9375em; - color: #333333; + color: #3684d6; font-size: 0.875em; background: none; } @@ -4479,7 +4765,7 @@ label.error { .section-container.horizontal-nav > .section > .title:hover, .section-container.accordion > section > .title:hover, .section-container.accordion > .section > .title:hover { - background-color: #e2e2e2; + background-color: none; } /* line 220, ../scss/foundation/components/_section.scss */ .section-container.auto > section > .content, .section-container.auto > .section > .content, @@ -4553,7 +4839,7 @@ label.error { .section-container.horizontal-nav > .section.active > .title a, .section-container.accordion > section.active > .title a, .section-container.accordion > .section.active > .title a { - color: #333333; + color: #666666; } /* line 237, ../scss/foundation/components/_section.scss */ .section-container.auto > section:not(.active), .section-container.auto > .section:not(.active), @@ -4634,13 +4920,13 @@ label.error { /* line 211, ../scss/foundation/components/_section.scss */ .section-container.tabs > section > .title a, .section-container.tabs > .section > .title a { padding: 0.9375em; - color: #333333; + color: #3684d6; font-size: 0.875em; background: none; } /* line 217, ../scss/foundation/components/_section.scss */ .section-container.tabs > section > .title:hover, .section-container.tabs > .section > .title:hover { - background-color: #e2e2e2; + background-color: none; } /* line 220, ../scss/foundation/components/_section.scss */ .section-container.tabs > section > .content, .section-container.tabs > .section > .content { @@ -4666,7 +4952,7 @@ label.error { } /* line 233, ../scss/foundation/components/_section.scss */ .section-container.tabs > section.active > .title a, .section-container.tabs > .section.active > .title a { - color: #333333; + color: #666666; } /* line 237, ../scss/foundation/components/_section.scss */ .section-container.tabs > section:not(.active), .section-container.tabs > .section:not(.active) { @@ -4732,13 +5018,13 @@ label.error { /* line 211, ../scss/foundation/components/_section.scss */ .section-container.auto > section > .title a, .section-container.auto > .section > .title a { padding: 0.9375em; - color: #333333; + color: #3684d6; font-size: 0.875em; background: none; } /* line 217, ../scss/foundation/components/_section.scss */ .section-container.auto > section > .title:hover, .section-container.auto > .section > .title:hover { - background-color: #e2e2e2; + background-color: none; } /* line 220, ../scss/foundation/components/_section.scss */ .section-container.auto > section > .content, .section-container.auto > .section > .content { @@ -4764,7 +5050,7 @@ label.error { } /* line 233, ../scss/foundation/components/_section.scss */ .section-container.auto > section.active > .title a, .section-container.auto > .section.active > .title a { - color: #333333; + color: #666666; } /* line 237, ../scss/foundation/components/_section.scss */ .section-container.auto > section:not(.active), .section-container.auto > .section:not(.active) { @@ -4850,13 +5136,13 @@ label.error { /* line 211, ../scss/foundation/components/_section.scss */ .section-container.vertical-tabs > section > .title a, .section-container.vertical-tabs > .section > .title a { padding: 0.9375em; - color: #333333; + color: #3684d6; font-size: 0.875em; background: none; } /* line 217, ../scss/foundation/components/_section.scss */ .section-container.vertical-tabs > section > .title:hover, .section-container.vertical-tabs > .section > .title:hover { - background-color: #e2e2e2; + background-color: none; } /* line 220, ../scss/foundation/components/_section.scss */ .section-container.vertical-tabs > section > .content, .section-container.vertical-tabs > .section > .content { @@ -4882,7 +5168,7 @@ label.error { } /* line 233, ../scss/foundation/components/_section.scss */ .section-container.vertical-tabs > section.active > .title a, .section-container.vertical-tabs > .section.active > .title a { - color: #333333; + color: #666666; } /* line 237, ../scss/foundation/components/_section.scss */ .section-container.vertical-tabs > section:not(.active), .section-container.vertical-tabs > .section:not(.active) { @@ -4979,13 +5265,13 @@ label.error { /* line 211, ../scss/foundation/components/_section.scss */ .section-container.vertical-nav > section > .title a, .section-container.vertical-nav > .section > .title a { padding: 0.9375em; - color: #333333; + color: #3684d6; font-size: 0.875em; background: none; } /* line 217, ../scss/foundation/components/_section.scss */ .section-container.vertical-nav > section > .title:hover, .section-container.vertical-nav > .section > .title:hover { - background-color: #e2e2e2; + background-color: none; } /* line 220, ../scss/foundation/components/_section.scss */ .section-container.vertical-nav > section > .content, .section-container.vertical-nav > .section > .content { @@ -5011,7 +5297,7 @@ label.error { } /* line 233, ../scss/foundation/components/_section.scss */ .section-container.vertical-nav > section.active > .title a, .section-container.vertical-nav > .section.active > .title a { - color: #333333; + color: #666666; } /* line 237, ../scss/foundation/components/_section.scss */ .section-container.vertical-nav > section:not(.active), .section-container.vertical-nav > .section:not(.active) { @@ -5102,13 +5388,13 @@ label.error { /* line 211, ../scss/foundation/components/_section.scss */ .section-container.horizontal-nav > section > .title a, .section-container.horizontal-nav > .section > .title a { padding: 0.9375em; - color: #333333; + color: #3684d6; font-size: 0.875em; background: none; } /* line 217, ../scss/foundation/components/_section.scss */ .section-container.horizontal-nav > section > .title:hover, .section-container.horizontal-nav > .section > .title:hover { - background-color: #e2e2e2; + background-color: none; } /* line 220, ../scss/foundation/components/_section.scss */ .section-container.horizontal-nav > section > .content, .section-container.horizontal-nav > .section > .content { @@ -5134,7 +5420,7 @@ label.error { } /* line 233, ../scss/foundation/components/_section.scss */ .section-container.horizontal-nav > section.active > .title a, .section-container.horizontal-nav > .section.active > .title a { - color: #333333; + color: #666666; } /* line 237, ../scss/foundation/components/_section.scss */ .section-container.horizontal-nav > section:not(.active), .section-container.horizontal-nav > .section:not(.active) { @@ -5204,13 +5490,13 @@ label.error { /* line 211, ../scss/foundation/components/_section.scss */ .no-js .section-container > section > .title a, .no-js .section-container > .section > .title a { padding: 0.9375em; - color: #333333; + color: #3684d6; font-size: 0.875em; background: none; } /* line 217, ../scss/foundation/components/_section.scss */ .no-js .section-container > section > .title:hover, .no-js .section-container > .section > .title:hover { - background-color: #e2e2e2; + background-color: none; } /* line 220, ../scss/foundation/components/_section.scss */ .no-js .section-container > section > .content, .no-js .section-container > .section > .content { @@ -5236,7 +5522,7 @@ label.error { } /* line 233, ../scss/foundation/components/_section.scss */ .no-js .section-container > section.active > .title a, .no-js .section-container > .section.active > .title a { - color: #333333; + color: #666666; } /* line 237, ../scss/foundation/components/_section.scss */ .no-js .section-container > section:not(.active), .no-js .section-container > .section:not(.active) { @@ -7714,14 +8000,14 @@ a.th { /* Tooltips */ /* line 29, ../scss/foundation/components/_tooltips.scss */ .has-tip { - border-bottom: dotted 1px #cccccc; - cursor: help; + border-bottom: 0px; + cursor: none; font-weight: bold; color: #333333; } /* line 36, ../scss/foundation/components/_tooltips.scss */ .has-tip:hover, .has-tip:focus { - border-bottom: dotted 1px #196177; + border-bottom: 0px; color: #2ba6cb; } /* line 42, ../scss/foundation/components/_tooltips.scss */ @@ -7742,7 +8028,7 @@ a.th { left: 50%; width: 100%; color: white; - background: black; + background: #3684d6; -webkit-border-radius: 3px; border-radius: 3px; } @@ -7754,32 +8040,32 @@ a.th { width: 0; height: 0; border: solid 5px; - border-color: transparent transparent black transparent; + border-color: transparent transparent #3684d6 transparent; top: -10px; } /* line 71, ../scss/foundation/components/_tooltips.scss */ .tooltip.opened { color: #2ba6cb !important; - border-bottom: dotted 1px #196177 !important; + border-bottom: 0px !important; } /* line 77, ../scss/foundation/components/_tooltips.scss */ .tap-to-close { display: block; font-size: 0.625em; - color: #888888; + color: white; font-weight: normal; } @media only screen and (min-width: 768px) { /* line 86, ../scss/foundation/components/_tooltips.scss */ .tooltip > .nub { - border-color: transparent transparent black transparent; + border-color: transparent transparent #3684d6 transparent; top: -10px; } /* line 90, ../scss/foundation/components/_tooltips.scss */ .tooltip.tip-top > .nub { - border-color: black transparent transparent transparent; + border-color: #3684d6 transparent transparent transparent; top: auto; bottom: -10px; } @@ -7789,7 +8075,7 @@ a.th { } /* line 99, ../scss/foundation/components/_tooltips.scss */ .tooltip.tip-left > .nub { - border-color: transparent transparent transparent black; + border-color: transparent transparent transparent #3684d6; right: -10px; left: auto; top: 50%; @@ -7797,7 +8083,7 @@ a.th { } /* line 106, ../scss/foundation/components/_tooltips.scss */ .tooltip.tip-right > .nub { - border-color: transparent black transparent transparent; + border-color: transparent #3684d6 transparent transparent; right: auto; left: -10px; top: 50%; diff --git a/codalab/apps/web/static/foundation/css/jquery.dataTables.css b/codalab/apps/web/static/foundation/css/jquery.dataTables.css index 1575d764d..32c5e215c 100644 --- a/codalab/apps/web/static/foundation/css/jquery.dataTables.css +++ b/codalab/apps/web/static/foundation/css/jquery.dataTables.css @@ -10,8 +10,10 @@ table.dataTable { table.dataTable thead th { padding: 3px 18px 3px 10px; - border-bottom: 1px solid black; - font-weight: bold; + padding-top: 13px; + padding-bottom: 13px; + /*border-bottom: 1px solid black;*/ + /*font-weight: bold;*/ cursor: pointer; *cursor: hand; } @@ -19,7 +21,7 @@ table.dataTable thead th { table.dataTable tfoot th { padding: 3px 18px 3px 10px; border-top: 1px solid black; - font-weight: bold; + /*font-weight: bold;*/ } table.dataTable td { diff --git a/codalab/apps/web/static/foundation/css/screen.css b/codalab/apps/web/static/foundation/css/screen.css index e1f4be8c7..aec7142ee 100644 --- a/codalab/apps/web/static/foundation/css/screen.css +++ b/codalab/apps/web/static/foundation/css/screen.css @@ -2,7 +2,7 @@ * In this file you should write your main styles. (or centralize your imports) * Import this file using the following HTML or equivalent: * */ -/* line 17, ../../../../../../../../Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +/* line 17, ../../../../../../../../Ruby200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, @@ -24,45 +24,45 @@ time, mark, audio, video { vertical-align: baseline; } -/* line 22, ../../../../../../../../Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +/* line 22, ../../../../../../../../Ruby200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ html { line-height: 1; } -/* line 24, ../../../../../../../../Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +/* line 24, ../../../../../../../../Ruby200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ ol, ul { list-style: none; } -/* line 26, ../../../../../../../../Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +/* line 26, ../../../../../../../../Ruby200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ table { border-collapse: collapse; border-spacing: 0; } -/* line 28, ../../../../../../../../Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +/* line 28, ../../../../../../../../Ruby200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ caption, th, td { text-align: left; font-weight: normal; vertical-align: middle; } -/* line 30, ../../../../../../../../Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +/* line 30, ../../../../../../../../Ruby200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ q, blockquote { quotes: none; } -/* line 103, ../../../../../../../../Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +/* line 103, ../../../../../../../../Ruby200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ q:before, q:after, blockquote:before, blockquote:after { content: ""; content: none; } -/* line 32, ../../../../../../../../Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +/* line 32, ../../../../../../../../Ruby200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ a img { border: none; } -/* line 116, ../../../../../../../../Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ +/* line 116, ../../../../../../../../Ruby200/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/reset/_utilities.scss */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary { display: block; } diff --git a/codalab/apps/web/static/foundation/sass/_settings.scss b/codalab/apps/web/static/foundation/sass/_settings.scss index a4682db94..4cd1466dc 100644 --- a/codalab/apps/web/static/foundation/sass/_settings.scss +++ b/codalab/apps/web/static/foundation/sass/_settings.scss @@ -5,8 +5,14 @@ $highlight: #3684d6; $active: #ffac31; $gray: #666; $light-gray: #ccc; +$light-medium-gray: #a4a4a4; $medium-light-gray: #999; $dark-gray: #333; +$light-background-blue:#eff2f9; +$link-color: #3684d6; +$background-gray:#f8f8f8; +$white:#fff; +$text-color-gray:#3b3b3b; $body-font-color: $gray; $header-font-color: $gray; @@ -34,15 +40,126 @@ $panel-padding-bottom: 0px; $button-font-color: $foreground; +$section-title-color: $highlight; +$section-title-color-active: $gray; +$section-title-bg-hover: none; + +$tooltip-bg: $background; +$tooltip-close-font-color: $foreground; +$has-tip-border-bottom: 0px; +$has-tip-border-bottom-hover: 0px; +$has-tip-cursor-type: none; + +@mixin linkStyle { + color:$link-color !important; + font-size:15px !important; +} + +@mixin paragraph-Style { + color:$text-color-gray; + font-size:13px; + line-height:22px; +} + *{ font-family: Segoe UI,'Segoe UI', Helvetica, Arial,'Trebuchet MS',sans-serif; font-size: 100%; font-weight: normal; } +select { + color: $dark-gray; +} + +form textarea { + color: $dark-gray; + font-size: 16px; +} + +.menu-icon { + background: $background; +} + +.menu-icon > span, .menu-icon > span a, .menu-icon > span a:hover { + border-bottom-style: none; + border: 0px; + padding: 2px; +} + +span.has-tip { + border-bottom: 0px; +} + +div.CompetitionsDetailContainer div.section-container section:not(.active) p a:hover { + color: $active; +} + +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container section p.title { + background: transparent; +} + +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container section.active div.content { + border: 0px; +} + +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container section p.title a { + padding: 2px; + text-align: right; + border: 0px; +} + +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container section p { + border: 0px; +} + +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container div.content { + margin-left: 10px; + font-size: 13px; +} + +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container div.content ul { + list-style: disc; + margin-left: 20px; +} + +div.CompetitionsDetailContainer div.section-container section.active div.content div.section-container section.active div.content em { + font-size: 13px; +} + +td > a > i { + color: $background; +} + +a > i { + height: 100%; + color: $foreground; +} + +.competitionsDetailTabArea > section > .title { + font-size: 19px; + font-weight: 400; +} + +.competitionsDetailTabArea > section > .title a:hover { + color: $active; +} + +.process_participant_request { + padding-top: 10px; +} + +.competitionUserBlock +{ + border:solid 1px #ccc; + margin-bottom:10px; + position:relative; + padding:0; +} + .user_results, .competition_results { padding-top: 10px; } + .globalBlueButton a, .globalBlueButton a:hover { color: $foreground; } @@ -64,6 +181,7 @@ $button-font-color: $foreground; .competitionProcessHeader > ul > li { height: 100%; } + .competitionProcessHeader > ul > li > a { color: $foreground; font-size: 13px; @@ -116,6 +234,7 @@ $button-font-color: $foreground; padding: 0px; margin: 0px; } + .competition-title { color: $dark-gray; text-align: left; @@ -141,7 +260,7 @@ $button-font-color: $foreground; position: relative; text-align: center; background: #D7CDBF; - padding-top: 105px; + padding-top: 70px; margin: 0 auto; width: 100%; min-height: 200px; @@ -177,10 +296,11 @@ $button-font-color: $foreground; padding-bottom:20px; } -.competition-paragraph { - font-size:12px; +p.competition-paragraph { + font-size:11px; color:$gray; - line-height:16px; + line-height:15px; + margin-bottom:0; } .competition-info { @@ -206,3 +326,152 @@ $button-font-color: $foreground; font-size:16px; color:$dark-gray; } + +.articleHeadingContainer h3 { + margin:0; + line-height:100%; +} + +.articleHeadingContainer label { + color:$light-medium-gray; + margin-top:4px; + margin-bottom:14px; + font-size:12px; +} + +.signin-centered-container { + margin:auto !important; + float:none !important; + background:$light-background-blue; + padding:25px; +} + +.small-6.pull-6.columns > .globalBlueButton { + float:right +} + +.signin-formfields p:nth-child(3) > input { + float:left; + position:relative; + top:-20px; +} + +.signin-formfields p:nth-child(3) > label { + padding-left:20px; +} + +.globalBlueButton, .globalBlueButtonBig, .globalBlueButtonInput, .globalBlueButtonAtag > a, .globalBlueButtonSmallAtag > a, .globalBlueButtonSmall, .globalBlueButtonSmallFlexi, .buttonAccept { + box-shadow:none; + white-space:nowrap; +} + +.signin-centered-container > p > a { + display:inline-block; +} + +ul.side-nav { + padding-top:0; + position:fixed; + li { + margin-bottom:2px; + } + li a { + @include linkStyle; + &:hover{color:$active} + &:active{background:none} + } + li.active a { + color:$gray !important + } +} + +.glossary-page-container, competitions-block-Styling { + h6 { + font-size:14px; + color:$gray + } + + p { + font-size:12px; + color:$gray + } + + ol { + font-size:13px; color:$gray; + + li { + padding-bottom:10px; + list-style-type:disc; + } + } + + ul { + font-size:13px; + color:$gray; + margin-left:20px; + + li{ + padding-bottom:10px; + list-style-type:disc; + } + } + + pre { + padding:10px; + background:$banner; + margin-bottom:15px; + } + + a { + color:$link-color + } + + b { + color:$gray + } +} + +div.auto.section-container > section > .title, .auto.section-container > .section > .title{ + a{ + background:$white; + padding-left:40px !important; + padding-right:40px !important; + font-size:19px; + } +} + +.auto.section-container > section > .content, .auto.section-container > .section > .content, .vertical-tabs.section-container > section > .content, .vertical-tabs.section-container > .section > .content { + background:$background-gray !important; +} + +.auto.section-container > section.active > .title { + border-bottom:solid 1px $background-gray !important; + a { + background:$background-gray !important; + } +} + +.section-container.vertical-tabs{ + .content{ + padding-top:1px !important; + @extend competitions-block-Styling; + p { + @include paragraph-Style; + } + } + + .CompetitionsDetailLftUl { + margin-bottom:2px; + + a { + @include linkStyle; + &:hover{color:$active !important} + &:active{background:none !important} + } + } + + .active a { + color:$gray !important; + font-weight:bold; + } +} diff --git a/codalab/apps/web/static/site/css/Main.css b/codalab/apps/web/static/site/css/Main.css index 86a918a3d..dbd94e531 100644 --- a/codalab/apps/web/static/site/css/Main.css +++ b/codalab/apps/web/static/site/css/Main.css @@ -505,7 +505,7 @@ ul.headerNavigation li.active a { /*Button----------------------------------------*/ input[type="submit"],input[type="submit"][value="Delete"] { - margin-top:10px; + /*margin-top:10px;*/ cursor:pointer; text-decoration:none; } @@ -909,13 +909,7 @@ input[type="submit"][value="Delete"] min-height:110px; background:#fafafa; } -.competitionUserBlock -{ - border:solid 1px #ccc; - margin-bottom:10px; - position:relative; - padding:0; -} + .compBlockRightContainer .competition-tile { border:0; } @@ -1491,7 +1485,7 @@ div.articleImageContainer .CompetitionsDetailContainer label { font:normal 13px arial; color:#adadad; - padding-bottom:40px; + /*padding-bottom:40px;*/ padding-top:10px; } .container.tabArea > label { @@ -1621,10 +1615,12 @@ ul.myCodalabTabContent li.tab1 { display:table; width:100%; } + .competitionsDetailTabArea { overflow:hidden; margin-top:17px; } + .competitionsProfileImage { width:175px; display:table-cell; diff --git a/codalab/apps/web/templates/account/login.html b/codalab/apps/web/templates/account/login.html new file mode 100644 index 000000000..fab25d150 --- /dev/null +++ b/codalab/apps/web/templates/account/login.html @@ -0,0 +1,47 @@ +{% extends "account/base.html" %} + +{% load i18n %} +{% load account %} +{% load url from future %} + +{% block head_title %}{% trans "Sign In" %}{% endblock %} +{% block subheader %}

{% trans "Sign In" %}

{% endblock subheader %} + +{% block content %} +
+ {% if socialaccount.providers %} +

+ {% blocktrans with site.name as site_name %}Please sign in with one + of your existing third party accounts. Or, sign up + for a {{site_name}} account and sign in below:{% endblocktrans %} +

+ +
+ + +
+ + {% include "socialaccount/snippets/login_extra.html" %} + {% endif %} + +
+ {% csrf_token %} + {{ form.as_p }} + {% if redirect_field_value %} + + {% endif %} +
+ +
+ +
+
+
+{% endblock %} +
diff --git a/codalab/apps/web/templates/account/logout.html b/codalab/apps/web/templates/account/logout.html new file mode 100644 index 000000000..3e2f1c4df --- /dev/null +++ b/codalab/apps/web/templates/account/logout.html @@ -0,0 +1,24 @@ +{% extends "account/base.html" %} + +{% load url from future %} +{% load i18n %} + +{% block head_title %}{% trans "Sign Out" %}{% endblock %} +{% block subheader %}

{% trans "Sign Out" %}

{% endblock subheader %} + +{% block content %} +
+ +

+ {% trans 'Are you sure you want to sign out?' %} +

+ +
+ {% csrf_token %} + {% if redirect_field_value %} + + {% endif %} + +
+
+{% endblock %} diff --git a/codalab/apps/web/templates/account/signup.html b/codalab/apps/web/templates/account/signup.html new file mode 100644 index 000000000..8174416ff --- /dev/null +++ b/codalab/apps/web/templates/account/signup.html @@ -0,0 +1,24 @@ +{% extends "account/base.html" %} + +{% load url from future %} +{% load i18n %} + +{% block head_title %}{% trans "Signup" %}{% endblock %} +{% block subheader %}

{% trans "Sign Up" %}

{% endblock subheader %} + +{% block content %} +
+

+ {% blocktrans %}Already have an account? Then please sign in.{% endblocktrans %} +

+ +
+ {% csrf_token %} + {{ form.as_p }} + {% if redirect_field_value %} + + {% endif %} + +
+
+{% endblock %} diff --git a/codalab/apps/web/templates/base.html b/codalab/apps/web/templates/base.html index dfe902712..82e547974 100644 --- a/codalab/apps/web/templates/base.html +++ b/codalab/apps/web/templates/base.html @@ -1,6 +1,7 @@ {% load url from future %} {% load account %} {% load analytical %} +{% load compress %} @@ -21,18 +22,22 @@ CodaLab - {% block head_title %}{% endblock %} {% block css %} - - - - - - - - - - {% endblock %} + {% compress css %} + + + + + {% endcompress %} + + {% compress js %} + + + + + {% endcompress %} + {% endblock css %} {% block extra_headers %}{% endblock extra_headers %} {% analytical_head_top %} @@ -71,9 +76,16 @@

CodaLab

--> {% if user.is_authenticated %} - + {% else %} - {% endif %} diff --git a/codalab/apps/web/templates/web/competitions/_accept_terms.html b/codalab/apps/web/templates/web/competitions/_accept_terms.html deleted file mode 100644 index e57cd53ac..000000000 --- a/codalab/apps/web/templates/web/competitions/_accept_terms.html +++ /dev/null @@ -1,35 +0,0 @@ -
-
-
-
- - - -
-
-

To participate in this competition, you must accept its specific terms and conditions. - After you register, the competition organizer will review your application and notify you - when your participation is approved. -

-
-
- - I accept the terms and conditions of the competition -
- -
-
- -
-
-
-
-
-
-{% block js %} -$(document).ready(function () { - var CompetitionDetails = new Competition.CompetitionDetails(); - CompetitionDetails.checkRegisterStatus(); - $("#termsAndConditions").click(function () { CompetitionDetails.redirectToCompetitionRules(); }); -}); -{% endblock js %} \ No newline at end of file diff --git a/codalab/apps/web/templates/web/competitions/_indexpage.html b/codalab/apps/web/templates/web/competitions/_indexpage.html index 87b6f3d48..88cf576b9 100644 --- a/codalab/apps/web/templates/web/competitions/_indexpage.html +++ b/codalab/apps/web/templates/web/competitions/_indexpage.html @@ -17,7 +17,7 @@

{{ item.title }}

-

{{ item.description }}

+

{{ item.description }}

diff --git a/codalab/apps/web/templates/web/competitions/_participate.html b/codalab/apps/web/templates/web/competitions/_participate.html index 5e4efb7f6..e31a15c69 100644 --- a/codalab/apps/web/templates/web/competitions/_participate.html +++ b/codalab/apps/web/templates/web/competitions/_participate.html @@ -1,9 +1,10 @@
{% for subsection in contents %}
-

{{subsection.label}}

-
+

{{subsection.label}}

+
{% if subsection.id == 8 %} + {{subsection.codename}} {% include "web/competitions/_submit_results.html" with competition=competition user=user %} {% else %} {{subsection.html|safe}} diff --git a/codalab/apps/web/templates/web/competitions/_submit_results.html b/codalab/apps/web/templates/web/competitions/_submit_results.html index 90a3abcbb..58f3b32c5 100644 --- a/codalab/apps/web/templates/web/competitions/_submit_results.html +++ b/codalab/apps/web/templates/web/competitions/_submit_results.html @@ -1,56 +1,56 @@ -
-
-
-
- Phase 1 -
-
- Phase 2 -
-
-
-
- -

Submit a new result set or view your previous submissions.

- - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubmissionNameDateScoreStatusSubmittedDetails
12011-07-28_12-54-39_944.jpg7/17/2013 6:31:05 PM0.000000Failed
22011-07-28_12-54-39_944.jpg7/17/2013 6:31:05 PM0.000000Failed
-
+
+
+
+
+ Phase 1 +
+
+ Phase 2 +
+
+
+
+ +

Submit a new result set or view your previous submissions.

+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SubmissionNameDateScoreStatus
12011-07-28_12-54-39_944.jpg7/17/2013 6:31:05 PM0.000000Failed
22011-07-28_12-54-39_944.jpg7/17/2013 6:31:05 PM0.000000Failed
+
\ No newline at end of file diff --git a/codalab/apps/web/templates/web/competitions/confirm-delete.html b/codalab/apps/web/templates/web/competitions/confirm-delete.html new file mode 100644 index 000000000..9969b5c4f --- /dev/null +++ b/codalab/apps/web/templates/web/competitions/confirm-delete.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% block subheader %}Delete Competition{% endblock subheader %} +{% block content %} +

Really delete {{ competition }}?

+ +
+ {% csrf_token %} + +
+{% endblock %} \ No newline at end of file diff --git a/codalab/apps/web/templates/web/competitions/view.html b/codalab/apps/web/templates/web/competitions/view.html index e1be077ae..abfcdb2cc 100644 --- a/codalab/apps/web/templates/web/competitions/view.html +++ b/codalab/apps/web/templates/web/competitions/view.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% load staticfiles %} -{% block title %}Competition - [{{ competition.title }}]{% endblock %} -} +{% block title %}Competition - [{{ competition.title }}]{% endblock title %} + {% block content %}
@@ -67,24 +67,30 @@

{{ competition.title }}

Sign in
{% else %} - {% if not participant %} -
+ {% if my_status == "unknown" %} + {% csrf_token %}

You have not yet registered for this competition.

-

To participate in this competition, you must accept its specific terms and conditions. After you register, the competition organizer will review your application and notify you when your participation is approved.

-
{% endblock %} {% block js %} + + function fnFormatDetails ( prTable, nTr ) + { + var aData = prTable.fnGetData( nTr ); + var sOut = ''; + sOut += ''; + sOut += ''; + sOut += ''; + sOut += '
Rendering engine:'+aData[1]+' '+aData[4]+'
Link to source:Could provide a link here
Extra info:And any further details here (images etc)
'; + + return sOut; + } + $('document').ready(function() { // This helps make sections appear with Foundation $(this).foundation('section', 'reflow'); - $("#participate_form").validate(); - $("#user_results").dataTable({ + + // Validate the form (ensure they have checked accept terms and conditions) + $("#participate_form").validate({ + errorPlacement: function(error, element) { + error.appendTo("#terms"); + } + }); + + /* attach a submit handler to the form */ + $("#participate_form").submit(function(event) { + + /* stop form from submitting normally */ + event.preventDefault(); + + /*clear result div*/ + $("#result").html(''); + + /* get some values from elements on the page: */ + var values = $(this).serialize(); + + /* Send the data using post and put the results in a div */ + request = $.ajax({ + url: "/api/competition/{{competition.id}}/participate/", + type: "post", + dataType: "text", + data: values, + success: function(response, textStatus, jqXHR) { + $('.content form').replaceWith('

Your request to participate was successfully submitted.

'); + }, + error: function(jsXHR, textStatus, errorThrown) { + alert("There was a problem registering for this competition.");; + } + }); + }); + + // In partials loaded, initialize the data tables + var prTable = $("#user_results").dataTable({ 'bPaginate' : false, 'bInfo' : false, 'bFilter' : false, 'bAutoWidth': false }); - $("#competition_results").dataTable({ + var crTable = $("#competition_results").dataTable({ 'bPaginate' : false, 'bInfo' : false, 'bFilter' : false diff --git a/codalab/apps/web/templates/web/help/about.html b/codalab/apps/web/templates/web/help/about.html index d09f0813b..dbdc024d6 100644 --- a/codalab/apps/web/templates/web/help/about.html +++ b/codalab/apps/web/templates/web/help/about.html @@ -5,7 +5,7 @@
-
+
About CodaLab

diff --git a/codalab/apps/web/templates/web/help/create_competition.html b/codalab/apps/web/templates/web/help/create_competition.html index c8da20c41..c0cec9467 100644 --- a/codalab/apps/web/templates/web/help/create_competition.html +++ b/codalab/apps/web/templates/web/help/create_competition.html @@ -4,7 +4,7 @@

-
+

Create a Competition

CodaLab competitions provide an opportunity for researchers, developers and algorithmists to diff --git a/codalab/apps/web/templates/web/index.html b/codalab/apps/web/templates/web/index.html index b1b40c32d..8218d8a47 100644 --- a/codalab/apps/web/templates/web/index.html +++ b/codalab/apps/web/templates/web/index.html @@ -49,7 +49,9 @@

Sign up today!

Start exploring CodaLab.

- Sign Up +
+ Sign Up +
diff --git a/codalab/apps/web/templates/web/my/_managed.html b/codalab/apps/web/templates/web/my/_managed.html index 5f2851a57..c90ee8464 100644 --- a/codalab/apps/web/templates/web/my/_managed.html +++ b/codalab/apps/web/templates/web/my/_managed.html @@ -1,35 +1,33 @@ {% if not competitions %} -

You do not manage any competitions.

+

You do not manage any competitions.

{% else %} - {% for item in competitions %} + {% for item in competitions %}
-
- -
-
-
-
-
- -
-
-
-
-

{{ item.title }}

- -
-

{{ item.description }}

-
+
+ +
+
+
+
+
+ +
-
- Delete - Edit - Participants - - {# @Html.ActionLink("Manage co-owners", "Coowners", new { id = item.CompetitionId }) #} +
+
+

{{ item.title }}

+ +
+

{{ item.description }}

+
+
+ -
-
+
+
- {% endfor %} + {% endfor %} {% endif %} diff --git a/codalab/apps/web/templates/web/my/index.html b/codalab/apps/web/templates/web/my/index.html index 1bb8fadfa..59a87ed60 100644 --- a/codalab/apps/web/templates/web/my/index.html +++ b/codalab/apps/web/templates/web/my/index.html @@ -2,10 +2,8 @@ {% block title %}My CodaLab{% endblock %} {% block content %}
- -
-
+

Competitions I'm Running @@ -22,7 +20,7 @@

- + {% include "web/my/_entered.html" with competitions=competitions_im_in %}
@@ -31,7 +29,9 @@
{% endblock content %} @@ -40,11 +40,5 @@ $('document').ready(function() { // This helps make sections appear with Foundation $(this).foundation('section', 'reflow'); - - // Ajax load the participating competitions when the section title is clicked - $('#participating').click(function() { - console.log("Fetching particpating..."); - $('.my_participating').html(' ').load('/my/_partials/_competitions_entered'); - }); }); {% endblock js %} diff --git a/codalab/apps/web/templates/web/my/participants.html b/codalab/apps/web/templates/web/my/participants.html index 91ff1f16f..1f88aea81 100644 --- a/codalab/apps/web/templates/web/my/participants.html +++ b/codalab/apps/web/templates/web/my/participants.html @@ -2,130 +2,87 @@ {% load staticfiles %} {% block title %}Participants{% endblock %} {% block extra_head %} - {% endblock %} +{% block subheader %} +

Participants

+{% endblock subheader %} {% block content %} -
- - -
- -
-
-