Skip to content

Development

Heroponne requested to merge development into staging

Goals

Main goal 1

Page user profil functionnal

Main goal 2

Edit user profil only if current user is the owner Profil page can't be accessed if not logged in

Changes

  • app/views/users/show.html.erb : added table pane for informations, composts, contributions, messages, button to edit modifed
  • app/controllers/users_controller.rb : edited method show, edit and add private method

Tests

  • Pane "infos": all the user attributes are here
  • Pane "composts": all the user composts are here, with a button for each one to see them
  • Pane "contributions": all the user contributions are here, with a button for each compost
  • Pane "messages" empty
  • if not logged, redirected to sign-in page if path for show or edit profile
  • if not owner of the profile, button to edit isn't here and can't reach edit page
  • if logged, all profile pages can be reached
  • if logged and owner of profile, button to edit is here and edit page is reachable
Edited by Heroponne

Merge request reports