Added message to download failed history events

Fixed: NZB info url on history details
This commit is contained in:
Mark McDowall 2013-10-28 17:27:28 -07:00
parent d634dd1e5c
commit 4578adf1c0
1 changed files with 24 additions and 13 deletions

View File

@ -3,7 +3,9 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3> <h3>
Details {{#if_eq eventType compare="grabbed"}}Grabbed{{/if_eq}}
{{#if_eq eventType compare="downloadFailed"}}Download Failed{{/if_eq}}
{{#if_eq eventType compare="downloadFolderImported"}}Episode Imported{{/if_eq}}
</h3> </h3>
</div> </div>
@ -27,24 +29,33 @@
{{#if nzbInfoUrl}} {{#if nzbInfoUrl}}
<dt>Info</dt> <dt>Info</dt>
<dd><a href="{{infoUrl}}">{{infoUrl}}o</a></dd> <dd><a href="{{nzbInfoUrl}}">{{nzbInfoUrl}}</a></dd>
{{/if}} {{/if}}
{{/with}} {{/with}}
</dl> </dl>
{{else}} {{/if_eq}}
{{#if_eq eventType compare="downloadFailed"}}
<dl class="dl-horizontal">
{{#with data}}
<dt>Message</dt>
<dd>{{message}}</dd>
{{/with}}
</dl>
{{/if_eq}}
{{#if_eq eventType compare="downloadFolderImported"}}
{{#if data}} {{#if data}}
{{#with data}} {{#with data}}
<dl class="dl-horizontal"> <dl class="dl-horizontal">
{{#if droppedPath}} {{#if droppedPath}}
<dt>Source:</dt> <dt>Source:</dt>
<dd>{{droppedPath}}</dd> <dd>{{droppedPath}}</dd>
{{/if}} {{/if}}
{{#if importedPath}} {{#if importedPath}}
<dt>Imported To:</dt> <dt>Imported To:</dt>
<dd>{{importedPath}}</dd> <dd>{{importedPath}}</dd>
{{/if}} {{/if}}
</dl> </dl>
{{/with}} {{/with}}
{{else}} {{else}}
No details available No details available