Skip to content

Commit

Permalink
fixed cdn links
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniespratley committed Dec 20, 2014
1 parent 148b797 commit d32f469
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 32 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ var proxyConfig = {
forward: {
'/socket.io/*': serverEndpoint,
'/socket.io': serverEndpoint,
'/cms-content': serverEndpoint,
'/api': serverEndpoint
}
}
Expand Down Expand Up @@ -106,6 +105,8 @@ module.exports = function (grunt) {
require('json-proxy').initialize(proxyConfig),
mountFolder(connect, '.grunt'),
mountFolder(connect, '.tmp'),
mountFolder(connect, config.publicDir),
mountFolder(connect, config.staticDir),
mountFolder(connect, 'app')
];
}
Expand Down
14 changes: 7 additions & 7 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="styles/main.css">
<!-- endbuild -->
<link rel="stylesheet" ng-href="{{App.config.cdn}}/bootswatch.com/{{App.theme | lowercase}}/bootstrap.min.css"/>
<link rel="stylesheet" ng-href="{{App.settings.cdn}}/bootswatch.com/{{App.theme | lowercase}}/bootstrap.min.css"/>

</head>
<body data-ng-class="App.route.current.scope.name">
Expand Down Expand Up @@ -138,12 +138,12 @@
<script src="scripts/controllers/help.js"></script>
<script src="scripts/controllers/app.js"></script>
<script src="scripts/filters/gravatar.js"></script>
<script src="scripts/directives/cmsformgroup.js"></script>
<script src="scripts/directives/cmswidgets.js"></script>
<script src="scripts/directives/cmswidget.js"></script>
<script src="scripts/directives/cmsuploader.js"></script>
<script src="scripts/directives/cmsheader.js"></script>
<script src="scripts/directives/cmsgravatar.js"></script>
<script src="scripts/directives/cms-formgroup.js"></script>
<script src="scripts/directives/cms-widgets.js"></script>
<script src="scripts/directives/cms-widget.js"></script>
<script src="scripts/directives/cms-uploader.js"></script>
<script src="scripts/directives/cms-header.js"></script>
<script src="scripts/directives/cms-gravatar.js"></script>
<script src="scripts/services/dataservice.js"></script>
<!--script src="scripts/services/cmsdataserviceprovider.js"></script-->
<script src="scripts/services/cmsdataservicefactory.js"></script>
Expand Down
49 changes: 25 additions & 24 deletions app/views/themes.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,38 @@ <h1><i class="fa fa-1x fa-picture-o"></i> Themes</h1>
<hr/>
</div>
<div class="well well-sm">
<div class="row">
<div class="col-sm-4 col-md-4 col-xs-4">
<img
src="http://placehold.it/400x300"
ng-src="{{App.config.cdn}}/bootswatch.com/{{App.theme | lowercase}}/thumbnail.png"
class="img-thumbnail">
</div>
<div class="col-md-8 col-sm-8 col-xs-8">
<small class="text-muted">Current Theme</small>
<h2>{{App.theme}} <small>1.0</small></h2>
<p>This is going to be meta data for the theme.</p>
<p class="text-muted"><span>OPTIONS:</span> <a href="#">Widgets</a> | <a href="#">Menus</a> | <a href="#">Header</a></p>
</div>
</div><!--/row-->
<div class="row">
<div class="col-sm-4 col-md-4 col-xs-4">
<img src="http://placehold.it/400x300"
ng-src="{{App.settings.cdn}}/bootswatch.com/{{App.theme | lowercase}}/thumbnail.png"
class="img-thumbnail">
</div>
<div class="col-md-8 col-sm-8 col-xs-8">
<small class="text-muted">Current Theme</small>
<h2>{{App.theme}} <small>1.0</small></h2>
<p>This is going to be meta data for the theme.</p>
<p class="text-muted">
<span>OPTIONS:</span>
<a href="#">Widgets</a> |
<a href="#">Menus</a> |
<a href="#">Header</a>
</p>
</div>
</div><!--/row-->
</div><!--/well-->




<!-- @TODO: [Themes List] -->
<div class="row cms-themes">
<div class="col-sm-6 col-md-4 col-xs-6 theme-item" ng-repeat="theme in App.options.themes">
<a class="thumbnail theme" href="" ng-click="selectTheme(theme);" title="Change to {{theme}} theme" ng-cloak>
<img
alt="{{theme}}"
ng-src="{{App.config.cdn}}/bootswatch.com/{{theme | lowercase}}/thumbnail.png"
src="http://placehold.it/300x150">
<a class="thumbnail theme" href=""
ng-click="selectTheme(theme);"
title="Change to {{theme}} theme"
ng-cloak>
<img alt="{{theme}}"
ng-src="{{App.settings.cdn}}/bootswatch.com/{{theme | lowercase}}/thumbnail.png"
src="http://placehold.it/300x150">
<div class="caption hidden">
<h3>{{theme}}</h3>
</div>
</a>
</div>

</div>

0 comments on commit d32f469

Please sign in to comment.