summaryrefslogtreecommitdiffstats
path: root/apps/files_publiclink/templates/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_publiclink/templates/admin.php')
-rw-r--r--apps/files_publiclink/templates/admin.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/files_publiclink/templates/admin.php b/apps/files_publiclink/templates/admin.php
index 4608877e5b8..f6c92d5cb17 100644
--- a/apps/files_publiclink/templates/admin.php
+++ b/apps/files_publiclink/templates/admin.php
@@ -1,18 +1,20 @@
<input type="hidden" id="baseUrl" value="<?php echo $_['baseUrl'];?>"/>
<table id="linklist">
- <tbody>
+ <thead id="controls">
<tr id="newlink_row">
<form action="#" id="newlink">
<td class="path"><input placeholder="Path" id="path"/></td>
<td><input type="submit" value="Share" /></td>
</form>
</tr>
+ </thead>
+ <tbody>
<?php foreach($_['links'] as $link):?>
- <tr class="link" id="<?php echo $link['token'];?>">
- <td class="path"><?php echo $link['path'];?></td>
- <td class="link"><a href="get.php?token=<?php echo $link['token'];?>"><?php echo $_['baseUrl'];?>?token=<?php echo $link['token'];?></a></td>
- <td><input type="submit" class="delete" data-token="<?php echo $link['token'];?>" value="<?php echo $l->t( 'Delete' ); ?>" /></td>
- </tr>
+ <tr class="link" id="<?php echo $link['token'];?>">
+ <td class="path"><?php echo $link['path'];?></td>
+ <td class="link"><input type="text" value="<?php echo $_['baseUrl'];?>?token=<?php echo $link['token'];?>" /></td>
+ <td><input type="submit" class="delete" data-token="<?php echo $link['token'];?>" value="<?php echo $l->t( 'Delete' ); ?>" /></td>
+ </tr>
<?php endforeach;?>
</tbody>
</table>