harsh7in / Blogger

Blogger is a basic blogging application which includes user to create an account and post their views.
MIT License
49 stars 77 forks source link

Showing profile for normal users #59

Closed Akshi149 closed 4 years ago

Akshi149 commented 4 years ago

Related Issue or bug

Fixes: #23

Proposed Changes

Additional Info

Screenshots

original screenshot

127 0 0 1_8000_# - Google Chrome 18-08-2020 02_43_17

Updated screenshot

Now it redirects to profileview/{{ post.author }}

127 0 0 1_8000_# - Google Chrome 18-08-2020 02_50_46
harsh7in commented 4 years ago

@Kajol-Kumari, please review it.

harsh7in commented 4 years ago

@Akshi149 plz resolve conflicts.

Akshi149 commented 4 years ago

@harsh-9in @Kajol-Kumari please check. Hope they are resolved.

harsh7in commented 4 years ago

yes, @Kajol-Kumari @Akshi149 we will use an already made template for that

Akshi149 commented 4 years ago

@Kajol-Kumari can you please tell me how can I restrict the user from editing the other user's profile when I render the existing template?

Kajol-Kumari commented 4 years ago

@Kajol-Kumari can you please tell me how can I restrict the user from editing the other user's profile when I render the existing template?

@Akshi149 You can create flag variable that will be true if the user is the author of the profile and false when not. So you can use this flag fro showing and hiding the edit button.

Akshi149 commented 4 years ago

@harsh-9in @Kajol-Kumari now please check this.

harsh7in commented 4 years ago

@Akshi149 try to update from upstream before making PR. I have already sent the commands in the slack channel.