-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all site works. except ensure_dirs_loaded()
- Loading branch information
Showing
6 changed files
with
278 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,37 @@ | ||
{% macro modal_directory_info(directory) %} | ||
<div class="modal fade" id="directoryInfoModal" tabindex="-1" aria-labelledby="directoryInfoModalLabel" aria-hidden="true"> | ||
<div class="modal-dialog modal-dialog-scrollable modal-lg"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" id="directoryInfoModalLabel">{{ directory.name }}</h5> | ||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
</div> | ||
<div class="modal-body"> | ||
<table class="table"> | ||
<tbody> | ||
<tr> | ||
<th scope="row">DB ID</th> | ||
<td>{{ directory.id }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Full path</th> | ||
<td>{{ directory.path }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Created</th> | ||
<td>{{ directory.created.strftime('%Y-%m-%d %H:%M:%S') }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Modified</th> | ||
<td>{{ directory.modified.strftime('%Y-%m-%d %H:%M:%S') }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Author</th> | ||
<td>{{ directory.author_id }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Comment</th> | ||
<td>{{ directory.comment }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> | ||
</div> | ||
</div> | ||
<div class="modal-header"> | ||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
<h5 class="modal-title w-100 text-center" id="directoryInfoModalLabel">Directory name: {{ directory.name }}</h5> | ||
</div> | ||
<div class="modal-body"> | ||
<table class="table"> | ||
<tbody> | ||
<tr> | ||
<th scope="row">DB ID</th> | ||
<td>{{ directory.id }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Full path</th> | ||
<td>{{ directory.path }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Created</th> | ||
<td>{{ directory.created.strftime('%Y-%m-%d %H:%M:%S') }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Modified</th> | ||
<td>{{ directory.modified.strftime('%Y-%m-%d %H:%M:%S') }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Author</th> | ||
<td>{{ directory.author_id }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Comment</th> | ||
<td>{{ directory.comment }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
{% endmacro %} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,35 @@ | ||
@require(id, name, path, created, modified, author, comment) | ||
|
||
<span class="file"><a href="versions?table=@path" class="table_link">@name</a> <a class="tree_link object_more_info" rel="Table @name">?</a></span> | ||
<div style="display: none"> | ||
<table> | ||
<tr style="color: gray"><td style="width:auto">DB ID:</td><td style="width: 100%">: @id</td></tr> | ||
<tr><td style="font-weight: bolder">Full path </td><td>: @path</td></tr> | ||
<tr><td>Created </td><td>: @created</td></tr> | ||
<tr><td>Modified </td><td>: @modified</td></tr> | ||
<tr><td>Author </td><td>: @author</td></tr> | ||
<tr><td>Comment </td><td>: @comment</td></tr> | ||
<div class="modal-header"> | ||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
<h5 class="modal-title w-100 text-center" id="tableInfoModalLabel">Table name: {{ table.name }}</h5> | ||
</div> | ||
<div class="modal-body"> | ||
<table class="table"> | ||
<tbody> | ||
<tr> | ||
<th scope="row">DB ID</th> | ||
<td>{{ table.id }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Full path</th> | ||
<td>{{ table.path }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Created</th> | ||
<td>{{ table.created.strftime('%Y-%m-%d %H:%M:%S') }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Modified</th> | ||
<td>{{ table.modified.strftime('%Y-%m-%d %H:%M:%S') }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Author</th> | ||
<td>{{ table.author }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Comment</th> | ||
<td>{{ table.comment }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
Oops, something went wrong.