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 creation date and reading time on article view #2222

Merged
merged 3 commits into from Aug 22, 2016

Conversation

nicosomb
Copy link
Member

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Documentation no
Translation yes
Fixed tickets
License MIT

Fix #2034 (from @foxmask)

capture d ecran 2016-08-18 a 15 22 15

@nicosomb nicosomb added this to the 2.0.7 milestone Aug 18, 2016
{% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
<div class="link mdi-action-query-builder"> {% if readingTime > 0 %}{{ 'entry.list.reading_time_minutes_short'|trans({'%readingTime%': readingTime|round}) }}
{% else %}{{ 'entry.list.reading_time_less_one_minute_short'|trans|raw }}
{% endif %}</div>
Copy link
Member

Choose a reason for hiding this comment

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

Can't this be displayed more nicely? I mean, it's hard to read the if / else / endif with that kind of indentation.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@tcitworld
Copy link
Member

Seems good. Am I the only one that the font kind of disturbs ? Or is it the margin around the icons ?

{% else %}
{{ 'entry.list.reading_time_less_one_minute_short'|trans|raw }}
{% endif %}
</div>
Copy link
Member

Choose a reason for hiding this comment

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

We should display a real text for baggy because icons aren't displayed:

Instead of using icons (which aren't available) display real text for reading time & creation date
@j0k3r
Copy link
Member

j0k3r commented Aug 21, 2016

@tcitworld yeah but I don't know how to fix it..

@nicosomb
Copy link
Member Author

👍

@nicosomb nicosomb merged commit c649d43 into master Aug 22, 2016
@nicosomb nicosomb deleted the add-date-on-article-view branch August 22, 2016 07:40
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.

date of the creation. of a post
3 participants