-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from YaleSTC/static_pages
Static pages
- Loading branch information
Showing
20 changed files
with
162 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
# All this logic will automatically be available in application.js. | ||
# You can use CoffeeScript in this file: http://coffeescript.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Place all the styles related to the pages controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class PagesController < ApplicationController | ||
include HighVoltage::StaticPage | ||
|
||
skip_authorization_check | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module PagesHelper | ||
end |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<div class="row"> | ||
When a lookup happens, there are two steps: | ||
<ol> | ||
<li>We use the number scanned in from the card and turn it into Yale UPI (University Personal Identifier)</li> | ||
<li>We use the Yale UPI to lookup the person in the <a href="http://directory.yale.edu/phonebook/index.htm">Yale Directory</a> via the <a href="http://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol">LDAP</a> protocol.</li> | ||
</ol> | ||
|
||
<pre> | ||
+---------------+ +---------------+ +-----------+ | ||
| YaleIDLookup | | YaleCardSwipe | | YaleLDAP | | ||
+---------------+ +---------------+ +-----------+ | ||
| | | | ||
| magnetic or prox number | | | ||
|-------------------------------->| | | ||
| | ---------------------------------\ | | ||
| |-| lookup in YaleIDCardLookup API | | | ||
| | |--------------------------------| | | ||
| | | | ||
| UPI | | | ||
|<--------------------------------| | | ||
| | | | ||
| UPI | | | ||
|------------------------------------------------------------------------->| | ||
| | | --------------------------\ | ||
| | |-| directory lookup (LDAP) | | ||
| | | |-------------------------| | ||
| | | | ||
| | useful hash of person attributes | | ||
|<-------------------------------------------------------------------------| | ||
| | | | ||
</pre> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<div class="row"> | ||
<h1>Hardware Recommendations</h1> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-8"> | ||
<h2>Guidelines</h2> | ||
<p> | ||
Prox Card > Magnetic Stripe > Keyboard | ||
</p> | ||
<ol> | ||
<li><strong>Prox Card</strong> is the most convenient, but also the most expensive. The device must be configured (once) to work with Yale IDs. Configuration settings are on the wiki page below.</li> | ||
<li><strong>Magnetic Stripe</strong> works well, but many people accidentally have to swipe a second time (flipping it around).</li> | ||
<li><strong>Keyboard</strong> is quick when someone has trouble getting their card out.</li> | ||
</ol> | ||
<h2>Where Can I Get A Device?</h2> | ||
<p> | ||
<ol> | ||
<li>Bass Library - Borrow one from <a href="https://reservations.yale.edu/bmec">Bass Library</a> (they may have some as of January 2014)</li> | ||
<li>Buy One - Order Online (see below)</li> | ||
<li>Keyboard Only - CardSwipr can be useful without a usb device. You can input people by netid, and it will still generate a useful list for you.</li> | ||
</ol> | ||
</p> | ||
<h3>I want my own, which one should I buy?</h3> | ||
<p> | ||
ITS doesn't officially endorse any particular brand/model, but a crowdsourced list can be found on this page. | ||
</p> | ||
<p> | ||
<a class="btn btn-default" href="https://github.com/YaleSTC/cardswipr/wiki/USB-Device-Recommendations/">Crowdsourced Wiki Page</a> | ||
</p> | ||
<h3>The one I bought worked / didn't work</h3> | ||
<p> | ||
Let us know! If you successfully/unsucessfully use another model, please update the hardware recommendations page. To edit the page, you must create a (free) github account. | ||
</p> | ||
</div> | ||
<div class="col-md-4"> | ||
<%= image_tag "CardSwiprInputTypes.jpg", class: "img-responsive img-thumbnail" %> | ||
</div> | ||
</div> |
30 changes: 23 additions & 7 deletions
30
app/views/distribution/home.html.erb → app/views/pages/home.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
HighVoltage.configure do |config| | ||
config.routes = false | ||
# config.home_page = 'home' | ||
# config.route_drawer = HighVoltage::RouteDrawers::Root | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'test_helper' | ||
|
||
class PagesControllerTest < ActionController::TestCase | ||
# test "the truth" do | ||
# assert true | ||
# end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
require 'test_helper' | ||
|
||
class PagesHelperTest < ActionView::TestCase | ||
end |