Skip to content
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
2 changes: 1 addition & 1 deletion .bowerrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"directory": "vendor/bower"
"directory": "bower_components"
}

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/node_modules/
/vendor/bower/
/bower_components/
/dist/
/test/coverage/
22 changes: 22 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = ->

# Load task configurations.
@loadTasks "build/tasks"

# Run JSHint and a quick test.
@registerTask "test", [
"jshint"
"karma:run"
]

# When running the default Grunt command, just lint the code.
@registerTask "default", [
"clean"
"jshint"
"karma:run"
"processhtml"
"copy"
"requirejs"
"styles"
"cssmin"
]
226 changes: 0 additions & 226 deletions Gruntfile.js

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2013 Tim Branyen
Copyright (c) 2014 Tim Branyen

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Finally, a repository can be clicked and recent commits displayed.
## Running locally ##

To run locally you will need to install [Node.js](http://nodejs.org) and
[grunt](http://github.com/gruntjs/grunt).
[Grunt](http://gruntjs.com).

``` bash
# Clone the repository.
Expand All @@ -22,7 +22,7 @@ git clone git://github.com/tbranyen/github-viewer.git
cd github-viewer

# Install the Node dependencies and Bower dependencies.
npm install -q
npm install

# Run the server
grunt server
Expand Down
2 changes: 1 addition & 1 deletion app/components/commit/item/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(function(require, exports, module) {
var Layout = require("layoutmanager");

var CommitItemView = Layout.extend({
template: require("ldsh!./template"),
template: require("template!./template"),

el: false,

Expand Down
2 changes: 1 addition & 1 deletion app/components/commit/list/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ define(function(require, exports, module) {
var Item = require("../item/view");

var Layout = Backbone.Layout.extend({
template: require("ldsh!./template"),
template: require("template!./template"),

beforeRender: function() {
this.collection.each(function(commit) {
Expand Down
2 changes: 1 addition & 1 deletion app/components/repo/item/template.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a href="#"><%= model.get("name") %></a>
<a href="#">{{ model.attributes.name }}</a>
2 changes: 1 addition & 1 deletion app/components/repo/item/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(function(require, exports, module) {
var app = require("app");

var Layout = Backbone.Layout.extend({
template: require("ldsh!./template"),
template: require("template!./template"),

tagName: "li",

Expand Down
12 changes: 6 additions & 6 deletions app/components/repo/list/template.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<% if (repos.isRequest) { %>
{% if repos.isRequest %}
<img src="/app/img/spinner.gif">
<% } else { %>
<% if (repos.length) { %>
{% else %}
{% if repos.length %}
<h4>Repos (<%= repos.length %>)</h4>
<hr>
<% } else { %>
{% else %}
<h4>No repos found.</h4>
<% } %>
{% endif %}

<ul class="nav nav-pills nav-stacked"></ul>
<% } %>
{% endif %}
2 changes: 1 addition & 1 deletion app/components/repo/list/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ define(function(require, exports, module) {
var Item = require("../item/view");

var Layout = Backbone.Layout.extend({
template: require("ldsh!./template"),
template: require("template!./template"),

className: "repos-wrapper",

Expand Down
2 changes: 1 addition & 1 deletion app/components/user/item/template.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a href="#"><%= model.get("login") %></a>
{{ model.attributes.login }}
2 changes: 1 addition & 1 deletion app/components/user/item/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(function(require, exports, module) {
var app = require("app");

var Layout = Backbone.Layout.extend({
template: require("ldsh!./template"),
template: require("template!./template"),

tagName: "li",

Expand Down
10 changes: 5 additions & 5 deletions app/components/user/list/template.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<form>
<div class="input-group">
<input type="text" class="org form-control <%= users.status || "" %>"
name="org" value="<%= users.org || "bocoup" %>">
<input type="text" class="org form-control {{ users.status }}"
name="org" value="{{ users.org }}">

<span class="input-group-btn">
<button class="btn btn-default">Search</button>
Expand All @@ -12,9 +12,9 @@
<hr>

<div>
<% if (users.isRequest) { %>
{% if users.isRequest %}
<img src="/app/img/spinner-gray.gif">
<% } else { %>
{% else %}
<ul class="user-list clearfix list-inline"></ul>
<% } %>
{% endif %}
</div>
2 changes: 1 addition & 1 deletion app/components/user/list/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ define(function(require, exports, module) {
var Item = require("../item/view");

var Layout = Backbone.Layout.extend({
template: require("ldsh!./template"),
template: require("template!./template"),

serialize: function() {
return { users: this.collection };
Expand Down
Loading