Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 3398e5a

Browse files
author
Jenkins Continuous Integration Server
committed
Merge commit '8d50cf48dc96bc30df78a0fb7fcd972390a61792' into HEAD
2 parents 6661006 + 8d50cf4 commit 3398e5a

File tree

15 files changed

+797
-374
lines changed

15 files changed

+797
-374
lines changed

app/directives/page-state-header/page-state-header.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
angular.module('tcUIComponents').directive('pageStateHeader', function() {
55
return {
66
restrict: 'E',
7-
templateUrl: 'directives/page-state-header/page-state-header.directive.html',
7+
templateUrl: 'directives/page-state-header/page-state-header.html',
88
transclude: true,
99
scope: {
1010
handle: '@',

app/directives/page-state-header/page-state-header.directive.jade renamed to app/directives/page-state-header/page-state-header.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.page-state-header
22
header
33
.page-info
4-
h1 {{pageTitle}}
4+
h1 {{pageTitle | track}}
55

66
div(ng-transclude)
77

app/directives/tc-file-input/tc-file-input.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
span.lowercase(ng-if="showFileType") {{ ' *(.' + fileType + ')'}}
44

55
.tc-file-field__inputs
6-
div
6+
.tc-label__wrapper
77
input.tc-file-field__input(type="text", placeholder="{{placeholder}}", disabled)
88

9-
span.tc-label__mandatory.lowercase(ng-if="mandatory") #[span *]mandatory
9+
span.tc-label__asterisk.lowercase(ng-if="mandatory") #[span *]mandatory
1010

1111
button.tc-btn(ng-click="selectFile()") {{buttonText}}
1212

app/directives/tc-form-stockart/tc-form-stockart.jade

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
tc-input.fieldset__input(
55
label-text="Photo Description",
66
asterisk-text="Field can't be empty",
7+
show-asterisk-text="true",
78
placeholder="A picture of a girl",
89
input-value="stockart.description",
910
input-name="photoDescription{{stockartId}}",
@@ -15,6 +16,7 @@
1516
tc-input.fieldset__input(
1617
label-text="Photo URL",
1718
asterisk-text="Field can't be empty",
19+
show-asterisk-text="true",
1820
placeholder="www.istockphoto.com",
1921
input-value="stockart.sourceUrl",
2022
input-name="photoURL{{stockartId}}",
@@ -30,6 +32,7 @@
3032
tc-input.fieldset__input(
3133
label-text="File Number",
3234
asterisk-text="Field can't be empty",
35+
show-asterisk-text="true",
3336
placeholder="u2434312",
3437
input-value="stockart.fileNumber",
3538
input-name="fileNumber{{stockartId}}",

app/directives/tc-input/tc-input.directive.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
scope: {
1111
labelText: '@',
1212
asteriskText: '@',
13+
showAsteriskText: '@',
1314
placeholder: '@',
1415
inputValue: '=',
1516
inputName: '@',

app/directives/tc-input/tc-input.jade

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
label.tc-label {{labelText}}
22

3-
p.tc-label__asterisk(ng-if="inputRequired") #[span *]{{asteriskText}}
3+
.tc-label__wrapper
4+
p.tc-label__asterisk(ng-if="inputRequired && showAsteriskText") #[span *]{{asteriskText}}
45

5-
input(
6-
name="{{inputName}}",
7-
type="{{inputType}}",
8-
placeholder="{{placeholder}}",
9-
ng-model="inputValue",
10-
ng-pattern="inputPattern",
11-
ng-required="inputRequired",
12-
ng-disabled="inputDisabled",
13-
maxlength="{{maxlength}}",
14-
ng-change="onChange()"
15-
)
6+
input(
7+
name="{{inputName}}",
8+
type="{{inputType}}",
9+
placeholder="{{placeholder}}",
10+
ng-model="inputValue",
11+
ng-pattern="inputPattern",
12+
ng-required="inputRequired",
13+
ng-disabled="inputDisabled",
14+
maxlength="{{maxlength}}",
15+
ng-change="onChange()"
16+
)

app/filters/track.filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
var map = {
1111
'UI_PROTOTYPE_COMPETITION': 'UI Prototype Competition',
12-
'ASSEMBLY_COMPETITION': 'ASSEMBLY',
12+
'ASSEMBLY_COMPETITION': 'Assembly',
1313
'RIA_BUILD_COMPETITION': 'RIA Build Competition',
1414
'RIA_COMPONENT_COMPETITION': 'RIA Component Competition',
1515
'DEVELOP_MARATHON_MATCH': 'Marathon Match',

app/profile/subtrack/subtrack.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
vm.back = back;
2626
vm.subTrackStats = [];
2727

28-
vm.pageName = vm.subTrack.toLowerCase().replace(/_/g, ' ');
28+
vm.pageName = vm.subTrack;
2929

3030
vm.tabs = ['statistics'];
3131

app/profile/subtrack/subtrack.jade

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.profile-subtrack-container(ng-cloak, ng-show="profileVm.status.stats === 'ready'")
2-
.content
2+
.content
33
.page-header
44
page-state-header(handle="{{vm.userHandle}}", page-title="{{vm.pageName}}", hide-money="true", show-back-link="true", default-state="profile")
55
.nav-right
@@ -11,7 +11,7 @@
1111
.carousel-elem
1212
a.flex-wrapper(ng-class="{'link': item.link, 'no-link': !item.link}", ng-href="{{item.link}}")
1313
p.title(ng-hide="true") {{item.subTrack | track}}
14-
14+
1515
p.value(ng-show="item.label === 'rating'", style="color: {{item.val | ratingColor}}") {{item.val | empty}}
1616
span(style="background-color: {{item.val | ratingColor}}")
1717

@@ -22,20 +22,20 @@
2222
include ./develop/develop-statistics.jade
2323
include ./design/design-statistics.jade
2424
include ./data/data-statistics.jade
25-
25+
2626
tc-tab(heading="{{vm.tabs[1]}}")
2727
.subtrack-stats
2828
responsive-carousel(data="vm.subTrackStats", handle="{{vm.handle}}")
2929
.carousel-elem
3030
.flex-wrapper
3131
p.title(ng-hide="true") {{item.subTrack | track}}
32-
32+
3333
p.value(ng-show="item.label === 'rating'", style="color: {{item.val | ratingColor}}") {{item.val | empty}}
3434
span(style="background-color: {{item.val | ratingColor}}")
3535

3636
p.value(ng-hide="item.label === 'rating'") {{item.val | empty}}
3737

3838
p.label {{item.label}}
39-
include ./develop/develop-challenges.jade
40-
include ./design/design-challenges.jade
39+
include ./develop/develop-challenges.jade
40+
include ./design/design-challenges.jade
4141
include ./data/data-challenges.jade

app/services/challenge.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
// if user has role of observer
8282
var roles = _.get(challenge, 'userDetails.roles', []);
83-
if (roles.length > 0) {
83+
if (roles && roles.length > 0) {
8484
var submitterRole = _.findIndex(roles, function(role) {
8585
var lRole = role.toLowerCase();
8686
return lRole === 'submitter';

0 commit comments

Comments
 (0)