Skip to content
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

Added an icon when the news was edited #223

Merged
merged 10 commits into from
Jun 9, 2024
Merged

Added an icon when the news was edited #223

merged 10 commits into from
Jun 9, 2024

Conversation

toster234
Copy link
Collaborator

Improved to acceptable appearance than in #218, need to improve date display in tooltip.

Improved to acceptable appearance, need to improve date display in tooltip.
@toster234 toster234 requested a review from Wruczek June 9, 2024 14:41
src/js/script.js Outdated Show resolved Hide resolved
<div>
{strtotime($news["added"])|fuzzyDateAbbr}
{if $news["edited"] !== null}
<i class="fas fa-pencil-alt mr-0 ml-1 news-edited" data-toggle="tooltip" n:attr="data-date => $news['edited']" data-html="true"></i>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. What's the purpose of the news-edited class?
  2. Why is the HTML allowed in the tooltip?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. The news-edited class is to make javascript recognize the element.
  2. Deleted.

src/js/script.js Outdated Show resolved Hide resolved
@Justman100
Copy link

@Wruczek

@Wruczek Wruczek merged commit 6b7d85b into Wruczek:2.0 Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants