aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default
Commit message (Collapse)AuthorAgeFilesLines
* Feature: support any tag separatorArthurHoaro2020-11-054-4/+28
| | | | | | | | So it allows to have multiple words tags. Breaking change: commas ',' are no longer a default separator. Fixes #594
* Fix confirm popup before bookmark deletionArthurHoaro2020-11-052-3/+5
| | | | | | Regression introduced by #1596 Fixes #1623
* Bulk creation: displays a progress bar when saving all displayed formsArthurHoaro2020-10-271-0/+9
|
* Bulk creation: fix private status based on the first formArthurHoaro2020-10-272-3/+3
|
* Feature: bulk creation of bookmarksArthurHoaro2020-10-273-0/+94
| | | | | | | | | | | | | | | | | | | | | | | | | This changes creates a new form in addlink page allowing to create multiple bookmarks at once more easily. It focuses on re-using as much existing code and template component as possible. These changes includes: - a new form in addlink (hidden behind a button by default), containing a text area for URL, and tags/private status to apply to created links - this form displays a new template called editlink.batch, itself including editlink template multiple times - User interation in this new templates are handle by a new JS script (shaare-batch.js) making AJAX requests, and therefore does not need page reloading - ManageShaareController has been split into 3 distinct controllers: + ShaareAdd: displays addlink template + ShaareManage: various operation applied on existing shaares (change visibility, pin, deletion, etc.) + ShaarePublish: handles creation/edit forms and saving Shaare's form - Updated translations Fixes #137
* Feature: add weekly and monthly view/RSS feed for daily pageArthurHoaro2020-10-272-15/+28
| | | | | | | | | - Heavy refactoring of DailyController - Add a banner like in tag cloud to display monthly and weekly links - Translations: t() now supports variables with optional first letter uppercase Fixes #160
* Feature: Share private bookmarks using a URL containing a private keyArthurHoaro2020-10-271-0/+7
| | | | | | | | | | - Add a share link next to « Permalink » in linklist (using share icon from fork awesome) - This link generates a private key associated to the bookmark - Accessing the bookmark while logged out with the proper key will display it Fixes #475
* Feature: add a Server administration pageArthurHoaro2020-10-214-8/+213
| | | | | | | | | | | | It contains mostly read only information about the current Shaarli instance, PHP version, extensions, file and folder permissions, etc. Also action buttons to clear the cache or sync thumbnails. Part of the content of this page is also displayed on the install page, to check server requirement before installing Shaarli config file. Fixes #40 Fixes #185
* Asynchronous retrieval of bookmark's thumbnailsArthurHoaro2020-10-201-3/+8
| | | | | | | | | This feature is based general.enable_async_metadata setting and works with existing metadata.js file. The script is compatible with any template: - the thumbnail div bloc must have attribute - the bookmark bloc must have attribute with the bookmark ID as value Fixes #1564
* Merge pull request #1567 from ArthurHoaro/feature/async-title-retrievalArthurHoaro2020-10-201-4/+18
|\
| * Add a setting to retrieve bookmark metadata asynchrounouslyArthurHoaro2020-10-151-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - There is a new standalone script (metadata.js) which requests a new controller to get bookmark metadata and fill the form async - This feature is enabled with the new setting: general.enable_async_metadata (enabled by default) - general.retrieve_description is now enabled by default - A small rotating loader animation has a been added to bookmark inputs when metadata is being retrieved (default template) - Custom JS htmlentities has been removed and mathiasbynens/he library is used instead Fixes #1563
* | Feature: highlight fulltext search resultsArthurHoaro2020-10-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | How it works: 1. when a fulltext search is made, Shaarli looks for the first occurence position of every term matching the search. No change here, but we store these positions in an array, in Bookmark's additionalContent. 2. when formatting bookmarks (through BookmarkFormatter implementation): 1. first we insert specific tokens at every search result positions 2. we format the content (escape HTML, apply markdown, etc.) 3. as a last step, we replace our token with displayable span elements Cons: this tightens coupling between search filters and formatters Pros: it was absolutely necessary not to perform the search twice. this solution has close to no impact on performances. Fixes #205
* | Improve Manage tags pageArthurHoaro2020-10-162-3/+3
| | | | | | | | Fixes #1125
* | Support using Shaarli without URL rewritingArthurHoaro2020-10-166-8/+8
|/ | | | | | | | | - Shaarli can be fully used by prefixing any URL with /index.php/ - {$base_path} used in templates already works with this configuration - Assets path (outside of theme's assets) must be prefixed with {$root_url}/ - Documentation section in « Server configuration » Fixes #1590
* Add Markdown Extra formatterArthurHoaro2020-10-131-1/+1
| | | | | | | | Library: [Parsedown Extra](https://github.com/erusev/parsedown-extra) Also sort dependencies alphabetically. Fixes #1169
* Security: fix multiple XSS vulnerabilities + fix search tags with special charsArthurHoaro2020-10-063-10/+10
| | | | | | XSS vulnerabilities fixed in editlink, linklist, tag.cloud and tag.list. Also fixed tag search with special characters: urlencode function needs to be applied on raw data, before espaping, otherwise the rendered URL is wrong.
* Issue #1437 - Make tag cloud/list views buttons more obvioussprak30002020-10-021-2/+2
| | | | This work alters the markup and CSS for the tag sort UI to match the button feel filters and links per page uses.
* Merge pull request #1519 from ArthurHoaro/fix/mobile-pin-linkArthurHoaro2020-09-031-1/+11
|\ | | | | Default template: display pin button in mobile view
| * Default template: display pin button in mobile viewArthurHoaro2020-08-271-1/+11
| | | | | | | | Fixes #1347
* | Merge pull request #1526 from kcaran/links_per_pageArthurHoaro2020-09-031-4/+9
|\ \
| * | Added $links_per_page variable to template and display on defaultKeith Carangelo2020-08-291-4/+9
| |/
* / Fix broken route to filter not tagged bookmarksArthurHoaro2020-08-311-21/+23
|/ | | | | | Also display the filter for visitors. Fixes #1529
* Move all admin controller into a dedicated groupArthurHoaro2020-08-132-4/+4
| | | | Also handle authentication check in a new middleware for the admin group.
* Better support for notes permalinkArthurHoaro2020-07-281-1/+1
|
* Fix: header search action should be on linklistArthurHoaro2020-07-241-1/+1
|
* Multiple small fixesArthurHoaro2020-07-231-1/+2
|
* Process Shaarli install through Slim controllerArthurHoaro2020-07-233-5/+5
|
* Process main page (linklist) through Slim controllerArthurHoaro2020-07-231-1/+1
| | | | | Including a bunch of improvements on the container, and helper used across new controllers.
* Process thumbnail synchronize page through Slim controllersArthurHoaro2020-07-234-5/+5
|
* Process plugins administration page through Slim controllersArthurHoaro2020-07-234-6/+7
|
* Process bookmarks import through Slim controllerArthurHoaro2020-07-232-2/+2
|
* Process bookmark exports through Slim controllersArthurHoaro2020-07-232-3/+2
|
* Pin bookmarks through Slim controllerArthurHoaro2020-07-231-1/+1
|
* Fix bookmarklet with new routesArthurHoaro2020-07-232-1/+2
| | | | | * Use the new shaare route * Add source hidden input in editlink template to close the popup after saving
* Use multi-level routes for existing controllers instead of 1 level everywhereArthurHoaro2020-07-2312-27/+27
| | | | Also prefix most admin routes with /admin/
* Explicitly define base and asset path in templatesArthurHoaro2020-07-2323-76/+77
| | | | | | | With the new routes, all pages are not all at the same folder level anymore (e.g. /shaare and /shaare/123), so we can't just use './' everywhere. The most consistent way to handle this is to prefix all path with the proper variable, and handle the actual path in controllers.
* Handle shaare creation/edition/deletion through Slim controllersArthurHoaro2020-07-233-3/+7
|
* Process manage tags page through Slim controllerArthurHoaro2020-07-233-5/+5
|
* Process configure page through Slim controllerArthurHoaro2020-07-232-2/+2
|
* Process password change controller through SlimArthurHoaro2020-07-231-0/+28
|
* Process tools page through Slim controllerArthurHoaro2020-07-231-1/+1
|
* Initialize admin Slim controllersArthurHoaro2020-07-231-1/+1
| | | | | | - Reorganize visitor controllers - Fix redirection with Slim's requests base path - Fix daily links
* Process session filters through Slim controllersArthurHoaro2020-07-231-8/+8
| | | | | | | Including: - visibility - links per page - untagged only
* Process remove tag endpoint through Slim controllerArthurHoaro2020-07-231-1/+3
|
* Process OpenSearch controller through SlimArthurHoaro2020-07-233-2/+7
| | | | Also it was missing on the default template feeds
* RSS/ATOM feeds: process through Slim controllerArthurHoaro2020-07-233-6/+6
|
* Process Daily RSS feed through Slim controllerArthurHoaro2020-07-232-17/+33
| | | | The daily RSS template has been entirely rewritten to handle the whole feed through the template engine.
* Process daily page through Slim controllerArthurHoaro2020-07-231-3/+3
|
* Process tag list page through Slim controllerArthurHoaro2020-07-233-5/+5
|
* Few optimizations and code readability for tag cloud controllerArthurHoaro2020-07-231-1/+1
|