Skip to content

Commit

Permalink
For filedownloads, the re-rank link only appears is configured for ma…
Browse files Browse the repository at this point in the history
…nual sorting

[#82 state:resolved]
  • Loading branch information
dleffler committed Mar 30, 2011
1 parent 0610cdc commit 0e32956
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Expand Up @@ -59,7 +59,7 @@ function showall() {
'columns'=>array('ID#'=>'id','Title'=>'title', 'Body'=>'body'),
));

assign_to_template(array('page'=>$page, 'items'=>$page->records, 'modelname'=>$modelname));
assign_to_template(array('page'=>$page, 'items'=>$page->records, 'modelname'=>$modelname, 'order'=>$order));
}

public function downloadfile() {
Expand Down
Expand Up @@ -20,14 +20,13 @@
{if $config.enable_rss}
<a class="podcastlink" href="{podcastlink}">Subscribe to {$config.feed_title}</a>
{/if}

{$page->links}
{permissions}
<div class="module-actions">
{if $permissions.create == 1}
{icon class="add" action=edit rank=1 title="Add a File at the Top"|gettext text="Add a File"|gettext}
{/if}
{if $permissions.edit == 1}
{if ($permissions.edit == 1 && $order != 'created_at')}
{ddrerank items=$page->records model="filedownload" label="Downloadable Items"|gettext}
{/if}
</div>
Expand Down
Expand Up @@ -25,7 +25,7 @@
{if $permissions.create == 1}
{icon class="add" action=edit rank=1 title="Add a File at the Top"|gettext text="Add a File"|gettext}
{/if}
{if $permissions.edit == 1}
{if ($permissions.edit == 1 && $order != 'created_at')}
{ddrerank items=$page->records model="filedownload" label="Downloadable Items"|gettext}
{/if}
</div>
Expand Down

0 comments on commit 0e32956

Please sign in to comment.