Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit a82abe2

Browse files
committed
move project data to projects/ dir
1 parent ad4877b commit a82abe2

File tree

11 files changed

+6
-6
lines changed

11 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ Gallery of AngularJS apps and demos.
66
Adding your neat thing
77
----------------------
88
1. Fork this repository.
9-
2. Add a 580 by 400 px thumbnail to img/content/[yourprojectnamehere]/thumb.png
10-
3. Add an entry to `projects.json`
9+
2. Add a 580 by 400px thumbnail to `projects/[yourprojectnamehere]/thumb.png`
10+
3. Add an entry to `projects/projects.json`
1111
4. Send a pull request

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@
128128

129129
<div role="main" class="container bwa-main-container" ng-controller="BWAController">
130130

131-
<script type="text/ng-template" id="/bwa-project.html">
131+
<script type="text/ng-template" id="bwa-project.html">
132132
<div>
133-
<img alt="{{project().name}} screenshot" class="bwa-img" ng-src="{{project() && 'img/content/' + project().thumb}}">
133+
<img alt="{{project() && project().name + ' screenshot'}}" class="bwa-img" ng-src="{{project() && 'projects/' + project().thumb}}">
134134
<h2>{{project().name}}</h2>
135135
<p>{{project().desc}}</p>
136136
<p>URL: <a href="{{project().url}}" ng-bind="project().url"></a>

js/bwa.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var app = angular.module('bwaApp', []);
33
app.directive('bwaProject', function() {
44
return {
55
restrict: 'E',
6-
templateUrl: '/bwa-project.html',
6+
templateUrl: 'bwa-project.html',
77
scope: {
88
project: 'accessor',
99
addTag: 'accessor'
@@ -32,7 +32,7 @@ app.controller('BWAController', function ($scope, $http, $filter) {
3232
];
3333
$scope.sortPrep = 'none';
3434

35-
$http.get('projects.json').
35+
$http.get('projects/projects.json').
3636
success(function (data, status, headers, config) {
3737

3838
$scope.projects = data.projects;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)