Skip to content
Commits on May 24, 2013
  1. @brianloveswords

    Implement autoawarding based on category.

    Whenever a badge that has a weight is awarded, we try to figure out if
    that user has earned enough in that category to earn any related
    category badges.
    brianloveswords committed May 23, 2013
  2. @brianloveswords

    Add `util.negate`

    This function takes an (asynchronous) function that is expected to
    return a boolean and returns a new function which returns the inverse of
    the original function.
    brianloveswords committed May 23, 2013
  3. @brianloveswords

    Fix `applyFixtures`

    Instead of manually keeping track of which model collections to flush,
    use the low-level `dropDatabase` method on the client connection. It's a
    little slower for some reason, but it's way more reliable.
    brianloveswords committed May 23, 2013
Commits on May 23, 2013
  1. @brianloveswords
  2. @brianloveswords
  3. @cmcavoy

    Merge pull request #112 from cmcavoy/v2.0

    adding a new program link to issuer
    cmcavoy committed May 23, 2013
  4. @cmcavoy
  5. @cmcavoy

    typo

    cmcavoy committed May 23, 2013
  6. @cmcavoy

    merging 101-extra-fields

    cmcavoy committed May 23, 2013
  7. @brianloveswords
  8. @brianloveswords

    Can add and edit programs again.

    This time with more images and other fields and stuff!
    brianloveswords committed May 22, 2013
Commits on May 22, 2013
  1. @brianloveswords

    Add images to issuers.

    This also does a lot of work to simplify things on the backend. Instead
    of processing programs at the same time we try to process issuers, it is
    a separate step. It's (arguably) a worse user experience on the
    frontend, but A) the UX is in flux right now so we don't know what it's
    going to look like anyway, and B) it's *way* simpler on the backend.
    brianloveswords committed May 22, 2013
  2. @brianloveswords

    Protect against nulls.

    brianloveswords committed May 22, 2013
  3. @cmcavoy
  4. @cmcavoy
Commits on May 20, 2013
  1. @brianloveswords

    Frontend & models for (some) extra badge fields

    This is still missing the prereqs stuff, but this adds age range, time
    to earn, category and badge type to the backend models and the
    frontend. This also had some refactoring of the badge `create` and
    `update` endpoints to pull out common code.
    brianloveswords committed May 20, 2013
  2. @brianloveswords
  3. @brianloveswords

    Merge pull request #108 from mgballard/v2.0

    Basic CSOL theme added.
    brianloveswords committed May 20, 2013
  4. @brianloveswords

    Merge pull request #105 from stenington/104-econnrefused

    Fixes node v0.10.6 ECONNREFUSED error
    brianloveswords committed May 20, 2013
  5. @mgballard

    CSS extra lines remove

    mgballard committed May 19, 2013
  6. @mgballard

    CSOL theme

    Added style for CSOL theme.
    To view change themeDir var to 'themes/csol'
    mgballard committed May 19, 2013
Commits on May 19, 2013
  1. @cmcavoy
Commits on May 17, 2013
  1. @mgballard
  2. @toolness

    Merge pull request #106 from toolness/theme-framework

    Moved all webmaker-specific stuff into themes/webmaker/.
    toolness committed May 17, 2013
  3. @toolness

    Moved all webmaker-specific stuff into themes/webmaker/.

    It's not really a proper theme because I just copied all public
    views in there. Had to do this b/c it was difficult to separate out
    what was webmaker-specific from what wasn't, especially since the
    webmaker css uses its own grid system and such. Alas, we'll have to go
    back later and fix things up.
    
    Now the public views just use generic ol' bootstrap, but are thus
    in prime condition for theming.
    toolness committed May 17, 2013
  4. @mgballard

    updates

    mgballard committed May 17, 2013
  5. @toolness

    Merge pull request #103 from toolness/theme-framework

    Added a rudimentary theming system.
    toolness committed May 17, 2013
  6. @stenington
  7. @toolness

    Ack, forgot about themes needing to override root files like favicon.…

    …ico.
    
    Now the `public` dir in themes is mounted at the root of the website,
    and any files defined in it replace ones defined by the website, similar
    to the way the `views` dir works. No more `THEME_ROOT` env var, either.
    toolness committed May 17, 2013
  8. @toolness

    Added a rudimentary theming system.

    This is based on the thing I did in
    mozilla/aestimia@57a8e75.
    
    Themes are directories that contain `public` and `views` directories.
    The `public` directory is mounted at `/theme/`, and any templates in the
    `views` directory override Openbadger's standard templates. Theme views
    should use {{ THEME_ROOT }} instead of hard-coding '/theme/' into
    themselves, though, since this root dir might change, or be hosted
    on a separate static file server, etc.
    
    CAVEATS:
    
    One weirdness here is that template.js is responsible for theming,
    and since theming requires extra express.static middleware, template.js
    is now responsible for the serving of all static files--which sort of
    makes sense, since the only reason we need static files is because
    the templates reference them... But that might be silly reasoning on
    my part.
    toolness committed May 17, 2013
Commits on May 16, 2013
  1. @brianloveswords

    Merge pull request #100 from stenington/issuers-endpoint

    Add /v2/issuers endpoint
    brianloveswords committed May 16, 2013
Commits on May 15, 2013
  1. @stenington

    Add /v2/issuers endpoint

    stenington committed May 15, 2013
  2. @brianloveswords

    Merge pull request #98 from stenington/program-endpoints

    Program endpoint tweaks
    brianloveswords committed May 15, 2013
Commits on May 14, 2013
  1. @stenington
  2. @stenington
Something went wrong with that request. Please try again.