Styling and rounding fixes for detail boxes

This commit is contained in:
Stefan Zermatten
2015-05-12 11:34:56 +02:00
parent bf032bcdf3
commit 2404845d51
5 changed files with 11 additions and 4 deletions

View File

@@ -10,7 +10,7 @@
<template name="itemDetails">
<div layout horizontal wrap center justified class="headline">
{{#if weight}}<div class="sideMargin">{{totalWeight}}lbs</div>{{/if}}
{{#if weight}}<div class="sideMargin">{{round totalWeight}}lbs</div>{{/if}}
{{#if value}}<div>{{valueString totalValue}}</div>{{/if}}
</div>
<div layout horizontal wrap class="caption">

View File

@@ -1,7 +1,7 @@
<template name="experienceDialog">
{{#with experience}}
{{#baseDialog title=name class=colorClass hideColor="true" startEditing=../startEditing}}
<div horizontal layout center-justified>
<div horizontal layout center-justified class= "display2">
{{value}}
</div>
{{#if description}}

View File

@@ -1,5 +1,8 @@
<template name="raceDialog">
{{#baseDialog title="Race" class=colorClass hideColor="true" hideDelete="true" startEditing=startEditing}}
<div horizontal layout center-justified class= "display2">
{{race}}
</div>
{{> effectsViewList charId=charId parentId=charId parentGroup="racial"}}
{{> proficiencyViewList charId=charId parentId=charId parentGroup="racial"}}
{{else}}

View File

@@ -140,7 +140,12 @@ Template.attributeDialogView.helpers({
return char.attributeValue(this.statName);
},
sourceName: function(){
if (this.parent.collection === "Characters") return this.name;
if (this.parent.group === "racial"){
return this.getParent().race;
}
if (this.parent.collection === "Characters"){
return this.name;
}
return this.getParent().name;
},
operationName: function(){

View File

@@ -9,7 +9,6 @@ Template.feedback.events({
url: window.location.href,
session: _.pairs(Session.keys),
};
console.log(report);
Meteor.call("insertReport", report);
}
});