Skip to content

Conversation

@javiereguiluz
Copy link
Member

And the last PR about tweaking admin pages. This time, the blog post show page (the "author" is gone because you can only see your own blog posts in the backend):

Before After
before-show after-show

@stof
Copy link
Member

stof commented Jan 17, 2017

should we keep the author name ?

@javiereguiluz
Copy link
Member Author

My reasoning was that you can only see your own posts in the backend (of course you can play with the URL parameters and see other posts ... but should we care about that?)

Copy link
Member

@yceruto yceruto left a comment

Choose a reason for hiding this comment

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

👍 looks much better now!


{% block main %}
<h1>{{ post.title }}</h1>
<p class="text-muted">{{ post.publishedAt|localizeddate('long', 'medium', null, 'UTC') }}</p>
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this could be displayed in blog index/show as well? #105 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

Wow! I totally missed this comment ... and I almost copied your idea here! Yes, we could display that information ... but for the users I'd like to display people names instead of emails (so we might need to add a field in the user entity).

Copy link
Member

Choose a reason for hiding this comment

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

but for the users I'd like to display people names instead of emails (so we might need to add a field in the user entity).

I'm totally agree with that!

@stof
Copy link
Member

stof commented Jan 17, 2017

of course you can play with the URL parameters and see other posts ... but should we care about that?

if you should only see your own posts, but changing the URL allows to see any post, this looks like a flaw in the security checks of the backend. It should send a 403. We should use proper security rules in the demo.

@javiereguiluz
Copy link
Member Author

@stof yes ... but it's a bit tricky. This demo app is a simplified blog, so we made some decisions such as: all posts are public and published, everybody can see all posts (even anonymous users visiting the blog), etc. The only restriction is that posts can only be edited by their authors.

javiereguiluz added a commit that referenced this pull request Feb 14, 2017
This PR was squashed before being merged into the master branch (closes #457).

Discussion
----------

Add fullName property to User entity

Implements #446

Others changes:
* Show full author name in all templates (#439 (comment))
* Use "Jane Doe" instead of "Anna" [RFC] !
* Updated fixtures and user commands.

| Posts Index | Post Comments |
| --- | --- |
| ![index](https://cloud.githubusercontent.com/assets/2028198/22749352/fe23ceb6-edfa-11e6-9667-a60d28c51c5c.png) | ![comments](https://cloud.githubusercontent.com/assets/2028198/22749387/2656157e-edfb-11e6-98ce-9cc7150cbb68.png) |

Commits
-------

4f590dd Add fullName property to User entity
sayjun0505 added a commit to sayjun0505/sym_proj that referenced this pull request Apr 16, 2023
This PR was squashed before being merged into the master branch (closes #457).

Discussion
----------

Add fullName property to User entity

Implements symfony/demo#446

Others changes:
* Show full author name in all templates (symfony/demo#439 (comment))
* Use "Jane Doe" instead of "Anna" [RFC] !
* Updated fixtures and user commands.

| Posts Index | Post Comments |
| --- | --- |
| ![index](https://cloud.githubusercontent.com/assets/2028198/22749352/fe23ceb6-edfa-11e6-9667-a60d28c51c5c.png) | ![comments](https://cloud.githubusercontent.com/assets/2028198/22749387/2656157e-edfb-11e6-98ce-9cc7150cbb68.png) |

Commits
-------

4f590dd Add fullName property to User entity
spider-yamet added a commit to spider-yamet/sym_proj that referenced this pull request Apr 16, 2023
This PR was squashed before being merged into the master branch (closes #457).

Discussion
----------

Add fullName property to User entity

Implements symfony/demo#446

Others changes:
* Show full author name in all templates (symfony/demo#439 (comment))
* Use "Jane Doe" instead of "Anna" [RFC] !
* Updated fixtures and user commands.

| Posts Index | Post Comments |
| --- | --- |
| ![index](https://cloud.githubusercontent.com/assets/2028198/22749352/fe23ceb6-edfa-11e6-9667-a60d28c51c5c.png) | ![comments](https://cloud.githubusercontent.com/assets/2028198/22749387/2656157e-edfb-11e6-98ce-9cc7150cbb68.png) |

Commits
-------

4f590dd Add fullName property to User entity
frederickboyd pushed a commit to frederickboyd/frederickboyd that referenced this pull request May 25, 2025
This PR was squashed before being merged into the master branch (closes #457).

Discussion
----------

Add fullName property to User entity

Implements symfony/demo#446

Others changes:
* Show full author name in all templates (symfony/demo#439 (comment))
* Use "Jane Doe" instead of "Anna" [RFC] !
* Updated fixtures and user commands.

| Posts Index | Post Comments |
| --- | --- |
| ![index](https://cloud.githubusercontent.com/assets/2028198/22749352/fe23ceb6-edfa-11e6-9667-a60d28c51c5c.png) | ![comments](https://cloud.githubusercontent.com/assets/2028198/22749387/2656157e-edfb-11e6-98ce-9cc7150cbb68.png) |

Commits
-------

4f590dd Add fullName property to User entity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants