feat: Display magic, usage for spell

This commit is contained in:
1ambda 2017-01-30 09:33:20 +09:00
parent 5be2890b20
commit 6c91892581
2 changed files with 38 additions and 3 deletions

View file

@ -51,11 +51,32 @@
margin-top: 0;
}
.heliumPackageList .heliumPackageName span {
font-size: 10px;
.heliumPackageList .heliumPackageName .heliumType {
font-size: 13px;
color: #AAAAAA;
}
.spellInfo {
margin-top: 15px;
font-size: 20px;
font-weight: bold;
}
.spellInfo .spellInfoDesc {
font-size: 13px;
color: #AAAAAA;
}
.spellInfo .spellInfoValue {
font-size: 13px;
font-style: italic;
color: #444444;
}
.spellInfo .spellUsage {
margin-top: 8px;
margin-bottom: 4px;
}
.heliumPackageList .heliumPackageDisabledArtifact {
color:gray;

View file

@ -50,7 +50,10 @@ limitations under the License.
<div class="heliumPackageHead">
<div class="heliumPackageIcon"
ng-bind-html=pkgInfo.pkg.icon></div>
<div class="heliumPackageName">{{pkgName}} <span>{{pkgInfo.pkg.type}}</span></div>
<div class="heliumPackageName">
{{pkgName}}
<span class="heliumType">{{pkgInfo.pkg.type}}</span>
</div>
<div ng-show="!pkgInfo.enabled"
ng-click="enable(pkgName, pkgInfo.pkg.artifact)"
class="btn btn-success btn-xs"
@ -81,6 +84,17 @@ limitations under the License.
<div class="heliumPackageDescription">
{{pkgInfo.pkg.description}}
</div>
<div ng-if="pkgInfo.pkg.type === 'SPELL' && pkgInfo.pkg.spell"
class="spellInfo">
<div>
<span class="spellInfoDesc">MAGIC</span>
<span class="spellInfoValue">{{pkgInfo.pkg.spell.magic}} </span>
</div>
<div>
<span class="spellInfoDesc">USAGE</span>
<pre class="spellUsage">{{pkgInfo.pkg.spell.usage}} </pre>
</div>
</div>
</div>
</div>
</div>