Skip to content

Commit

Permalink
Allows discrete selection of items displayed with showall view. Delet…
Browse files Browse the repository at this point in the history
…es the now unnecessary 'showall-quickview-w-description' view

[#256 state:resolved milestone:'Release Candidate 1']
  • Loading branch information
dleffler committed Jul 26, 2011
1 parent 1000a88 commit d966a3e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@
{control type=dropdown name=order label="Sort By" items="Date Added, Order Manually" values="created_at,rank" value=$config.order|default:created_at}
{control type=dropdown name=dir label="Sort Order" items="Newest First, Oldest First" values="DESC, ASC" value=$config.dir}
{control type="radiogroup" name="usebody" label="Body Text"|gettext value=$config.usebody|default:0 items="Full,Summary,None" values="0,1,2"}
{control type="checkbox" name="quick_download" label="Quick Download?" value=1 checked=$config.quick_download}
{control type="checkbox" name="show_info" label="Show File Info?" value=1 checked=$config.show_info}
{control type="checkbox" name="show_icon" label="Show File Icon or Preview?" value=1 checked=$config.show_icon}
30 changes: 20 additions & 10 deletions framework/modules/filedownloads/views/filedownload/showall.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,21 @@
{pagelinks paginate=$page top=1}
{foreach from=$page->records item=file name=files}
<div class="item">
{if $file->expFile.preview[0] != ""}
{if $file->expFile.preview[0] != "" && $config.show_icon}
{img class="preview-img" file_id=$file->expFile.preview[0]->id square=150}
{/if}
{if $file->title}<h2>{$file->title}</h2>{/if}
<span class="label size">File Size:</span>
<span class="value">{$file->expFile.downloadable[0]->filesize|kilobytes}Kb</span>
&nbsp;&nbsp;
<span class="label downloads"># Downloads:</span>
<span class="value">{$file->downloads}</span>
{if $config.quick_download}
<h2><a class="download" href="{link action=downloadfile fileid=$file->id}">{$file->title}</a></h2>
{else}
{if $file->title}<h2><a class="readmore" href="{link action=show title=$file->sef_url}">{$file->title}</a></h2>{/if}
{/if}
{if $config.show_info}
<span class="label size">File Size:</span>
<span class="value">{$file->expFile.downloadable[0]->filesize|kilobytes}Kb</span>
&nbsp;&nbsp;
<span class="label downloads"># Downloads:</span>
<span class="value">{$file->downloads}</span>
{/if}
{permissions}
<div class="item-actions">
{if $permissions.edit == 1}
Expand Down Expand Up @@ -67,9 +73,13 @@
{$file->body}
{/if}
</div>
<a class="readmore" href="{link action=show title=$file->sef_url}">Read more</a>
&nbsp;&nbsp;
<a class="download" href="{link action=downloadfile fileid=$file->id}">Download</a>
{if $config.usebody==1 || $config.usebody==2}
<a class="readmore" href="{link action=show title=$file->sef_url}">Read more</a>
&nbsp;&nbsp;
{/if}
{if !$config.quick_download}
<a class="download" href="{link action=downloadfile fileid=$file->id}">Download</a>
{/if}
{clear}
{permissions}
<div class="module-actions">
Expand Down

This file was deleted.

0 comments on commit d966a3e

Please sign in to comment.