Skip to content

Commit 31bf47d

Browse files
author
vikasrohit
authored
Merge pull request #164 from topcoder-platform/dev
Supporting Release for Connect 2.4.16
2 parents 172c4a5 + 9fcd0af commit 31bf47d

File tree

4 files changed

+84
-23
lines changed

4 files changed

+84
-23
lines changed

emails/src/partials/project-team.html

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -104,25 +104,55 @@
104104
<td class="main-td">
105105
<table class="main-child">
106106
<tr>
107-
<td class="empty-child-one"></td>
108-
<td class="second-child" align="center">
109-
{{#if notifications.[0].[connect.notification.project.member.invite.requested]}}
110-
<a href="{{@root.connectURL}}/projects/{{notifications.[0].projectId}}#manageTopcoderTeam">
111-
Manage project team
112-
</a>
107+
{{#if notifications.[0].[connect.notification.project.member.invite.created]}}
108+
<td class="empty-child-one for-two-buttons"></td>
109+
{{#if notifications.[0].[isSSO]}}
110+
<td class="second-child" align="center">
111+
<a href="{{@root.accountsAppURL}}/sso-login/?app=connect&retUrl={{@root.connectURL}}/projects/{{notifications.[0].projectId}}%3Finvitation%3Daccept">
112+
Join Project
113+
</a>
114+
</td>
115+
<td class="empty-width-10"></td>
116+
<td class="second-child" align="center">
117+
<a class="second-btn" href="{{@root.accountsAppURL}}/sso-login/?app=connect&retUrl={{@root.connectURL}}/projects/{{notifications.[0].projectId}}%3Finvitation%3Ddecline">
118+
Decline
119+
</a>
120+
</td>
113121
{{else}}
114-
{{#if notifications.[0].[isSSO]}}
115-
<a href="{{@root.accountsAppURL}}/sso-login/?app=connect&retUrl={{@root.connectURL}}/projects/{{notifications.[0].projectId}}">
116-
SSO Login
117-
</a>
118-
{{else}}
119-
<a href="{{@root.connectURL}}/projects/{{notifications.[0].projectId}}">
120-
View project on Connect
121-
</a>
122-
{{/if}}
122+
<td class="second-child" align="center">
123+
<a href="{{@root.connectURL}}/projects/{{notifications.[0].projectId}}?invitation=accept">
124+
Join Project
125+
</a>
126+
</td>
127+
<td class="empty-width-10"></td>
128+
<td class="second-child" align="center">
129+
<a class="second-btn" href="{{@root.connectURL}}/projects/{{notifications.[0].projectId}}?invitation=decline">
130+
Decline
131+
</a>
132+
</td>
123133
{{/if}}
124-
</td>
125-
<td class="empty-child-one"></td>
134+
<td class="empty-child-one for-two-buttons"></td>
135+
{{else}}
136+
<td class="empty-child-one"></td>
137+
<td class="second-child" align="center">
138+
{{#if notifications.[0].[connect.notification.project.member.invite.requested]}}
139+
<a href="{{@root.connectURL}}/projects/{{notifications.[0].projectId}}#manageTopcoderTeam">
140+
Manage project team
141+
</a>
142+
{{else}}
143+
{{#if notifications.[0].[isSSO]}}
144+
<a href="{{@root.accountsAppURL}}/sso-login/?app=connect&retUrl={{@root.connectURL}}/projects/{{notifications.[0].projectId}}">
145+
SSO Login
146+
</a>
147+
{{else}}
148+
<a href="{{@root.connectURL}}/projects/{{notifications.[0].projectId}}">
149+
View project on Connect
150+
</a>
151+
{{/if}}
152+
{{/if}}
153+
</td>
154+
<td class="empty-child-one"></td>
155+
{{/if}}
126156
</tr>
127157
</table>
128158
</td>

emails/src/styles/main.css

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ table.container, table.footer-container {
148148
height: 15px;
149149
background-color: #FFFFFF; }
150150

151+
.empty-width-10 {
152+
width: 10px; }
153+
151154
.post-details .main-child {
152155
background-color: #FFFFFF; }
153156
.post-details .main-child .empty-child-one {
@@ -207,22 +210,30 @@ table.container, table.footer-container {
207210
.button-row .main-child .second-child {
208211
border-radius: 4px;
209212
vertical-align: middle;
210-
background-color: #0681FF;
211213
height: 30px; }
212214
.button-row .main-child .second-child a {
213215
border-radius: 4px;
214216
text-align: center;
215217
text-decoration: none;
216218
display: block;
217219
background-color: #0681FF;
218-
padding-top: 6px;
219-
padding-bottom: 5px;
220+
padding-top: 8px;
221+
padding-bottom: 7px;
220222
text-align: center;
221223
color: #FFFFFF;
222224
font-size: 13px; }
225+
.button-row .main-child .second-child a.second-btn {
226+
color: #555555;
227+
border: 1px solid #808080;
228+
background-color: #FFFFFF;
229+
padding-top: 7px;
230+
padding-bottom: 6px;
231+
width: 165px; }
223232

224233
.button-one .main-child .empty-child-one, .button-three .main-child .empty-child-one {
225234
width: 216px; }
235+
.button-one .main-child .empty-child-one.for-two-buttons, .button-three .main-child .empty-child-one.for-two-buttons {
236+
width: 128px; }
226237

227238
.button-one .main-child .second-child, .button-three .main-child .second-child {
228239
width: 167px; }

emails/src/styles/modules/_color.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ $grey-color: #888894;
88
$blue-color: #006DEA;
99
$grey-hyperlink: #808080;
1010
$button-color: #0681FF;
11+
$tc-gray-70: #555555;

emails/src/styles/partials/_base.scss

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ table.container, table.footer-container {
206206
}
207207
}
208208

209+
.empty-width-10 {
210+
width: 10px;
211+
}
212+
209213
// emptys end
210214

211215
// post details
@@ -306,7 +310,6 @@ table.container, table.footer-container {
306310
// width: 167px;
307311
border-radius: 4px;
308312
vertical-align: middle;
309-
background-color: $button-color;
310313
height: 30px;
311314
a {
312315
// width: 167px;
@@ -315,12 +318,22 @@ table.container, table.footer-container {
315318
text-decoration: none;
316319
display: block;
317320
background-color: $button-color;
318-
padding-top: 6px;
319-
padding-bottom: 5px;
321+
padding-top: 8px;
322+
padding-bottom: 7px;
320323
text-align: center;
321324
color: $white-background;
322325
font-size: 13px;
323326
}
327+
a {
328+
&.second-btn {
329+
color: $tc-gray-70;
330+
border: 1px solid $grey-hyperlink;
331+
background-color: $white-background;
332+
padding-top: 7px; // minus 1px border-top
333+
padding-bottom: 6px; // minus 1px border-bottom
334+
width: 165px; // minus 2px borders
335+
}
336+
}
324337
}
325338
}
326339
}
@@ -332,6 +345,12 @@ table.container, table.footer-container {
332345
.main-child {
333346
.empty-child-one {
334347
width: 216px;
348+
349+
// if we have two buttons in one row with 10px spacing between:
350+
// space=128px + button=167px + space=10px + button=167px + space=128px
351+
&.for-two-buttons {
352+
width: 128px;
353+
}
335354
}
336355
.second-child {
337356
width: 167px;

0 commit comments

Comments
 (0)