Skip to content

Commit

Permalink
Merge branch 'diggyk-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jathanism committed Sep 16, 2015
2 parents 0917264 + bb9125d commit e23d1f0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
13 changes: 7 additions & 6 deletions hermes/webapp/src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ h1 {
.quest-list {
background: #fff5cc;
padding: 0px;
-webkit-border-radius: 0px 5px 5px 0px;
-moz-border-radius: 0px 5px 5px 0px;
border-radius: 0px 5px 5px 0px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: #fce897 solid 1px;
}


Expand All @@ -66,7 +67,7 @@ h1 {

.quest-list-filter {
padding: 10px 10px 20px 10px;
border-bottom: #d0d4d9 2px dashed;
border-bottom: #fce897 2px dotted;
}

.quest-list-filter input {
Expand All @@ -87,7 +88,7 @@ h1 {

.quest-list-entry {
padding: 10px 10px 20px 10px;
border-bottom: #d0d4d9 1px solid;
border-bottom: #fce897 1px solid;
}

.quest-list-entry:last-child {
Expand Down Expand Up @@ -137,4 +138,4 @@ h1 {
padding-right: 15px;
padding-top: 5px;
padding-bottom: 5px;
}
}
5 changes: 5 additions & 0 deletions hermes/webapp/src/js/controllers/questStatusCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@
* @param quest
*/
function analyzeLabors(ownerData, questData) {
if (!ownerData || !questData) {
vm.errorMessage = "Failed to load data. Please try again.";
return;
}

// keep the latest labor with an given id or starting_labor_id
// FIXME: This should all be done by the backend but isn't supported yet
var laborsUnique = {};
Expand Down
14 changes: 7 additions & 7 deletions hermes/webapp/src/js/services/hermesService.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
return response.data;
}

function getQuestsFailed() {
console.error("API call to get open Quests failed. " + error.code);
function getQuestsFailed(error) {
console.error("API call to get open Quests failed. " + error.status + " " + error.statusText);
}
}

Expand All @@ -54,8 +54,8 @@
return response.data;
}

function getQuestFailed() {
console.error("API call to get details of Quest " + id + " failed: " + error.code);
function getQuestFailed(error) {
console.error("API call to get details of Quest " + id + " failed: " + error.status + " " + error.statusText);
}
}

Expand All @@ -68,8 +68,8 @@
return response.data.results;
}

function getOwnersFailed() {
console.error("API to get owners failed: " + error.code);
function getOwnersFailed(error) {
console.error("API to get owners failed: " + error.status + " " + error.statusText);
}
}

Expand All @@ -84,7 +84,7 @@
}

function getFatesFailed(error) {
console.error("API call to get Fates failed. " + error.code)
console.error("API call to get Fates failed. " + error.status + " " + error.statusText)
}
}

Expand Down
6 changes: 3 additions & 3 deletions hermes/webapp/src/templates/questStatus.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<div class="col-md-3 quest-list">
<div class="quest-list-filter">
<div>
<strong>Filtering Options</strong>
<label for="creatorFilter">Filter by Creator</label>
</div>
<div class="row">
<div class="col-md-10">
<input type="text" ng-model="qc.filterByCreator" />
<input id="creatorFilter" type="text" ng-model="qc.filterByCreator" />
</div>
<div class="col-md-2">
<button ng-click="qc.runNewFilter()">GO</button>
Expand Down Expand Up @@ -88,4 +88,4 @@
</div>
</div>
</div>
</div>
</div>

0 comments on commit e23d1f0

Please sign in to comment.