-
Notifications
You must be signed in to change notification settings - Fork 23
Add tools section to Boost library views and templates #2049
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
Open
julioest
wants to merge
8
commits into
boostorg:develop
Choose a base branch
from
julioest:add-boost-tools-1810
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f8a3255
WIP: Add tools section to Boost library views and templates
julioest ec7e44c
Enhance tools functionality in Boost library
julioest 62db6a1
Refactor tool list item templates for improved URL handling
julioest 85668b3
Adds a "Tools" link next to the category dropdown that scrolls users …
julioest e3453a4
Remove "Tools" link and associated tooltip from library preferences t…
julioest 7a58615
Remove "Wave" tool entry from the TOOLS constant in constants.py
julioest bc57cee
Update libraries/constants.py
julioest 0fa1603
Update libraries/utils.py
julioest File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| {% if tool.url %} | ||
| <tr class="border-0 md:border border-gray-200/10 border-dotted md:border-t-0 md:border-r-0 md:border-l-0 md:border-b-1 hover:bg-gray-100 dark:hover:bg-gray-700 transition-all duration-200 ease-in-out cursor-pointer" onclick="window.open('{{ tool.url }}', '_blank', 'noopener,noreferrer')"> | ||
| {% else %} | ||
| <tr class="border-0 md:border border-gray-200/10 border-dotted md:border-t-0 md:border-r-0 md:border-l-0 md:border-b-1 hover:bg-gray-100 dark:hover:bg-gray-700 transition-all duration-200 ease-in-out"> | ||
| {% endif %} | ||
| <td class="py-2 align-top md:w-1/5"> | ||
| <span class="mr-1 font-bold capitalize text-sky-600 dark:text-sky-300">{{ tool.name }}</span> | ||
| </td> | ||
|
|
||
| <td class="w-12 align-top pt-2.5 pr-2"> | ||
| {# Empty cell for alignment with library rows #} | ||
| </td> | ||
| <td class="w-8 pt-2 px-2 text-center align-top"> | ||
| {# Empty cell for alignment with library rows #} | ||
| </td> | ||
| <td class="w-8 text-center align-top"> | ||
| {# Empty cell for alignment with library rows #} | ||
| </td> | ||
| <td class="hidden md:block py-2 pl-3 align-top" style="min-height: 3rem;">{{ tool.description }}</td> | ||
| </tr> | ||
| <tr class="block md:hidden"> | ||
| <td>{{ tool.description }}</td> | ||
| </tr> |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| {% load static %} | ||
|
|
||
| {% if tool.url %} | ||
| <a href="{{ tool.url }}" target="_blank" rel="noopener noreferrer" class="block h-full"> | ||
| {% endif %} | ||
| <div class="relative flex flex-col h-full p-3 bg-white md:rounded-lg md:shadow-lg md:p-5 dark:bg-charcoal hover:bg-gray-100 dark:hover:bg-gray-700 transition-all duration-200 ease-in-out {% if tool.url %}cursor-pointer{% endif %}"> | ||
| <div class=""> | ||
| <h3 class="pb-2 text-xl md:text-2xl capitalize border-b border-gray-700"> | ||
| <span class="link-header">{{ tool.name }}</span> | ||
| </h3> | ||
| </div> | ||
| <div class="mb-3 pb-3 flex-grow"> | ||
| <p class="mb-3 text-gray-700 dark:text-gray-300">{{ tool.description }}</p> | ||
| </div> | ||
| </div> | ||
| {% if tool.url %} | ||
| </a> | ||
| {% endif %} |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| {% if tool.url %} | ||
| <tr class="border-0 md:border border-gray-200/10 border-dotted md:border-t-0 md:border-r-0 md:border-l-0 md:border-b-1 hover:bg-gray-100 dark:hover:bg-gray-700 transition-all duration-300 ease-in-out cursor-pointer" onclick="window.open('{{ tool.url }}', '_blank', 'noopener,noreferrer')"> | ||
| {% else %} | ||
| <tr class="border-0 md:border border-gray-200/10 border-dotted md:border-t-0 md:border-r-0 md:border-l-0 md:border-b-1 hover:bg-gray-100 dark:hover:bg-gray-700 transition-all duration-300 ease-in-out"> | ||
| {% endif %} | ||
| <td class="align-top md:w-1/5 pt-3"> | ||
| <span class="mr-1 pl-1 font-bold capitalize text-sky-600 dark:text-sky-300">{{ tool.name }}</span> | ||
| </td> | ||
| <td class="w-12 align-top pt-3 pr-2"> | ||
| {# Empty cell for alignment with library rows #} | ||
| </td> | ||
| <td class="w-8 text-center align-top pt-3"> | ||
| {# Empty cell for alignment with library rows #} | ||
| </td> | ||
| <td class="w-8 align-top"> | ||
| {# Empty cell for alignment with library rows #} | ||
| </td> | ||
| <td class="align-top hidden md:block mt-2 pl-3 md:items-center" style="min-height: 3rem;">{{ tool.description }}</td> | ||
| </tr> | ||
| <tr class="block md:hidden pl-1 align-top"> | ||
| <td>{{ tool.description }}</td> | ||
| </tr> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Have you tested these urls? I would think they should be root-relative, i.e. have a leading slash.