You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: templates/contributions.html
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,8 @@ <h4>{{= name in html}}</h4>
29
29
</a>
30
30
<ulclass="dropdown-menu">{{
31
31
const updated = new Date(machine.data.updated);
32
-
const c9sdkStart = new Date('2017-08-02');
33
32
const c9ioEnd = new Date('2017-09-02');
34
-
if (updated > c9sdkStart && updated <c9ioEnd){}}
33
+
if (machine.traits.includes('c9sdk') && updated <c9ioEnd){}}
35
34
<li>
36
35
<ahref="https://c9.io/open/ssh?name={{= projectId in id}}-{{= id in id}}&description={{= project.name in uri}}%20on%20janitor.technology&host={{= machine.docker.host in uri}}&port={{= machine.docker.ports['22'].port in integer}}&user=user&workspaceDir={{= project.docker.path in uri}}&nodePath=%2Fhome%2Fuser%2F.c9%2Fnode%2Fbin%2Fnode" target="_blank">Edit via c9.io</a>
37
36
</li>{{ } }}
@@ -41,8 +40,8 @@ <h4>{{= name in html}}</h4>
41
40
</ul>
42
41
<aclass="btn btn-default" href="https://{{= machine.docker.host in uri}}/{{= machine.docker.container.slice(0,16) in uri}}/8088/vnc.html" target="_blank">VNC</a>
43
42
<aclass="btn btn-primary"{{
44
-
if(updated<c9sdkStart){}}href="https://c9.io/open/ssh?name={{= projectId in id}}-{{= id in id}}&description={{= project.name in uri}}%20on%20janitor.technology&host={{= machine.docker.host in uri}}&port={{= machine.docker.ports['22'].port in integer}}&user=user&workspaceDir={{= project.docker.path in uri}}&nodePath=%2Fhome%2Fuser%2F.c9%2Fnode%2Fbin%2Fnode" {{}
45
-
else{}}href="https://{{= machine.docker.host in uri}}/{{= machine.docker.container.slice(0,16) in uri}}/8089/ide.html" {{}
43
+
if(machine.traits.includes('c9sdk')) { }} href="https://{{= machine.docker.host in uri}}/{{= machine.docker.container.slice(0,16) in uri}}/8089/ide.html" {{}
44
+
else{}}href="https://c9.io/open/ssh?name={{= projectId in id}}-{{= id in id}}&description={{= project.name in uri}}%20on%20janitor.technology&host={{= machine.docker.host in uri}}&port={{= machine.docker.ports['22'].port in integer}}&user=user&workspaceDir={{= project.docker.path in uri}}&nodePath=%2Fhome%2Fuser%2F.c9%2Fnode%2Fbin%2Fnode" {{}
46
45
}}target="_blank"><spanclass="hidden-xs">Edit in </span>Cloud9</a>
0 commit comments