diff options
author | redmatrix <git@macgirvin.com> | 2016-07-07 17:23:52 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-07 17:23:52 -0700 |
commit | 233cfc29d6e68f8a8453fab2ebb733ab35fa4b67 (patch) | |
tree | e4b2e8b8f364b1aa9317ae2b260b53a505e70741 | |
parent | 3bee6543fbd339adf9b9993269b6a46bec27f05e (diff) | |
download | volse-hubzilla-233cfc29d6e68f8a8453fab2ebb733ab35fa4b67.tar.gz volse-hubzilla-233cfc29d6e68f8a8453fab2ebb733ab35fa4b67.tar.bz2 volse-hubzilla-233cfc29d6e68f8a8453fab2ebb733ab35fa4b67.zip |
hide the redeliver option one level down since it should rarely be needed by folks outside of shared hosting.
-rw-r--r-- | Zotlabs/Module/Dreport.php | 1 | ||||
-rw-r--r-- | view/tpl/dreport.tpl | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Zotlabs/Module/Dreport.php b/Zotlabs/Module/Dreport.php index 17ed6515e..d2933b464 100644 --- a/Zotlabs/Module/Dreport.php +++ b/Zotlabs/Module/Dreport.php @@ -146,6 +146,7 @@ class Dreport extends \Zotlabs\Web\Controller { '$title' => sprintf( t('Delivery report for %1$s'),substr($mid,0,32)) . '...', '$table' => $table, '$mid' => urlencode($mid), + '$options' => t('Options'), '$push' => t('Redeliver'), '$entries' => $entries )); diff --git a/view/tpl/dreport.tpl b/view/tpl/dreport.tpl index 7d5524a6a..8aa5e2cd1 100644 --- a/view/tpl/dreport.tpl +++ b/view/tpl/dreport.tpl @@ -1,7 +1,14 @@ <div class="generic-content-wrapper"> <div class="section-title-wrapper"> {{if $table == 'item'}} - <a href="dreport/push/{{$mid}}"><button class="btn btn-default btn-xs pull-right">{{$push}}</button></a> + <div class="dropdown pull-right"> + <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="{{$options}}"> + <i class="fa fa-sort-desc"></i> + </button> + <ul class="dropdown-menu"> + <li><a href="dreport/push/{{$mid}}">{{$push}}</a></li> + </ul> + </div> {{/if}} <h2>{{$title}}</h2> </div> |