Skip to content

Added projects page #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/views/_partials/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
-->
<li class="nav-loc">
<a href="/sigs">SIGs</a>
</li>
<li class="nav-loc">
<a href="/projects">Projects</a>
</li>
<li class="nav-loc">
<a href="/conference">Reflections|Projections</a>
Expand Down Expand Up @@ -163,4 +166,4 @@
<% } %>
</ul>
</nav>
</div>
</div>
43 changes: 43 additions & 0 deletions app/views/desktop/projects.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
Copyright © 2017, ACM@UIUC
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: 2019


This file is part of the Groot Project.

The Groot Project is open source software, released under the University of
Illinois/NCSA Open Source License. You should have received a copy of
this license in a file with the distribution.
-->

<%- include('../_partials/header') -%>

<div class="conference-container">
<div class="row">
<div class="img-container small-12 medium-12 large-12 column col-centered"><img class="center_img" width="200px" src="../images/acm-logo-flat.svg"/></div>
</div>
<div class="row">
<p>
ACM Projects is the engineering group for ACM that builds useful and interesting projects that allow ACM to function and students to learn.
</p>
</div>
<div class="row title"><span>Projects</span></div>
<div>
<div class="top-bar nav" border="0">
<table class="h-list" style="background-color:transparent">
<tbody>
<% for (var n of editions) { %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the sake of clarity, may want to rename this variable

<tr>
<th>
<a href= <%= n.path %> > <%= n.project %> </a>
</th>
<td>
<%= n.desc%>
</td>
</tr>
<% } %>
</tbody>
</table>
</div>
</div>
</div>

<%- include('../_partials/footer') -%>
13 changes: 13 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,19 @@ app.get('/hackillinois', function(req, res) {
});
});

app.get('/projects', function(req, res) {
res.render('desktop/projects', {
authenticated: utils.isAuthenticated(req),
editions: [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename this to projects or something (see above)

{ project: 'Groot', path: 'https://github.com/acm-uiuc/groot', desc: 'Groot is the next generation web application serving the UIUC Chapter of ACM.'},
{ project: 'Arbor', path: 'https://github.com/arbor-dev/arbor', desc: 'Arbor is a statically configured framework for creating API Gateways.'},
{ project: 'Concert', path: 'https://github.com/acm-uiuc/concert', desc: 'Concert is the new music system for the ACM Office.' },
{ project: 'GPU Cluster', path: 'https://github.com/acm-uiuc/gpu-cluster', desc:'The GPU Cluster allows students to provision containers and Jupyter Notebooks with GPU access.' },
{ project: 'IlliniRACECAR', path: 'https://racecar.acm.illinois.edu', desc:'Illini RACECAR is a RC car robotics platform used by students to research robotics and reinforcement learning.' },
]
});
});

app.get('/intranet', function(req, res) {
if(!utils.isAuthenticated(req)) {
return res.redirect('/login');
Expand Down