-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move sharing page options to menu in top right #6652
Changes from all commits
3d05540
93d14dd
40a3b01
9f4cd52
f2fadf6
116cb58
b3ccaf8
bc47668
18dff92
84b8cb1
eebf19e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
<input type="hidden" id="isPublic" name="isPublic" value="1"> | ||
<input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir"> | ||
<input type="hidden" name="downloadURL" value="<?php p($_['downloadURL']) ?>" id="downloadURL"> | ||
<input type="hidden" name="previewURL" value="<?php p($_['previewURL']) ?>" id="previewURL"> | ||
<input type="hidden" name="sharingToken" value="<?php p($_['sharingToken']) ?>" id="sharingToken"> | ||
<input type="hidden" name="filename" value="<?php p($_['filename']) ?>" id="filename"> | ||
<input type="hidden" name="mimetype" value="<?php p($_['mimetype']) ?>" id="mimetype"> | ||
|
@@ -48,22 +49,38 @@ | |
</div> | ||
|
||
<div class="header-right"> | ||
<?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)) { | ||
if ($_['server2serversharing']) { | ||
?> | ||
<span id="save" data-protected="<?php p($_['protected']) ?>" | ||
data-owner-display-name="<?php p($_['displayName']) ?>" data-owner="<?php p($_['owner']) ?>" data-name="<?php p($_['filename']) ?>"> | ||
<button id="save-button"><?php p($l->t('Add to your Nextcloud')) ?></button> | ||
<form class="save-form hidden" action="#"> | ||
<input type="text" id="remote_address" placeholder="[email protected]"/> | ||
<button id="save-button-confirm" class="icon-confirm svg" disabled></button> | ||
</form> | ||
</span> | ||
<?php } ?> | ||
<a href="<?php p($_['downloadURL']); ?>" id="download" class="button"> | ||
<span class="icon icon-download"></span> | ||
<span id="download-text"><?php p($l->t('Download'))?></span> | ||
</a> | ||
<?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)) { ?> | ||
<a href="#" id="share-menutoggle" class="menutoggle icon-more-white"><span class="share-menutoggle-text"><?php p($l->t('Download')) ?></span></a> | ||
<div id="share-menu" class="popovermenu menu"> | ||
<ul> | ||
<li> | ||
<a href="<?php p($_['downloadURL']); ?>" id="download"> | ||
<span class="icon icon-download"></span> | ||
<?php p($l->t('Download'))?> <span class="download-size">(<?php p($_['fileSize']) ?>)</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="#" id="directLink-container"> | ||
<span class="icon icon-public"></span> | ||
<label for="directLink"><?php p($l->t('Direct link')) ?></label> | ||
<input id="directLink" type="text" readonly value="<?php p($_['previewURL']); ?>"> | ||
</a> | ||
</li> | ||
<?php if ($_['server2serversharing']) { ?> | ||
<li> | ||
<a href="#" id="save" data-protected="<?php p($_['protected']) ?>" | ||
data-owner-display-name="<?php p($_['displayName']) ?>" data-owner="<?php p($_['owner']) ?>" data-name="<?php p($_['filename']) ?>"> | ||
<span class="icon icon-external"></span> | ||
<span id="save-button"><?php p($l->t('Add to your Nextcloud')) ?></span> | ||
<form class="save-form hidden" action="#"> | ||
<input type="text" id="remote_address" placeholder="[email protected]"/> | ||
<button id="save-button-confirm" class="icon-confirm svg" disabled></button> | ||
</form> | ||
</a> | ||
</li> | ||
<?php } ?> | ||
</ul> | ||
</div> | ||
<?php } ?> | ||
</div> | ||
</div></header> | ||
|
@@ -84,16 +101,14 @@ | |
<!-- Preview frame is filled via JS to support SVG images for modern browsers --> | ||
<div id="imgframe"></div> | ||
<?php endif; ?> | ||
<?php if ($_['previewURL'] === $_['downloadURL']): ?> | ||
<div class="directDownload"> | ||
<a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not working on my setup, No response or feedback when clicking this link. |
||
<span class="icon icon-download"></span> | ||
<?php p($l->t('Download %s', array($_['filename'])))?> (<?php p($_['fileSize']) ?>) | ||
</a> | ||
</div> | ||
<div class="directLink"> | ||
<label for="directLink"><?php p($l->t('Direct link')) ?></label> | ||
<input id="directLink" type="text" readonly value="<?php p($_['previewURL']); ?>"> | ||
</div> | ||
<?php endif; ?> | ||
<?php endif; ?> | ||
</div> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,6 +143,8 @@ | |
#header-left, .header-left { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This could have a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That’s already set in the lines above. :) |
||
flex: 0 0; | ||
flex-grow: 1; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
} | ||
|
||
#header-right, .header-right { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the download link having the
icon-more-white
class? This needs to be 2 separate elements. :)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Download is just the text label for the menu, so it's the same element. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels strange! :/ :)