mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-22 07:30:25 +00:00
WebClient: show images as gallery
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
a2e73228d2
commit
e059197398
2 changed files with 2 additions and 2 deletions
|
@ -262,7 +262,7 @@ func (c *RetentionCheck) cleanupFolder(folderPath string) error {
|
|||
result.Elapsed = time.Since(startTime)
|
||||
result.Info = "data retention check skipped: no permissions"
|
||||
c.conn.Log(logger.LevelInfo, "user %#v does not have permissions to check retention on %#v, retention check skipped",
|
||||
c.conn.User, folderPath)
|
||||
c.conn.User.Username, folderPath)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -1047,7 +1047,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||
case "svg":
|
||||
case "ico":
|
||||
var view_url = row['url']+"&inline=1";
|
||||
return `<a href="${view_url}" data-lightbox="${filename}" data-title="${filename}"><i class="fas fa-eye"></i></a>`;
|
||||
return `<a href="${view_url}" data-lightbox="image-gallery" data-title="${filename}"><i class="fas fa-eye"></i></a>`;
|
||||
case "mp4":
|
||||
case "mov":
|
||||
return `<a href="#" onclick="openVideoPlayer('${row["name"]}', '${row['url']}', 'video/mp4');"><i class="fas fa-eye"></i></a>`;
|
||||
|
|
Loading…
Reference in a new issue