6840 : meta tags update (#6998)
* Adds a new metadata helper and methods to PostPresenter to have metas on post pages. * Adds tests to post controller to check correctness of metas * Add methods to PersonPresenter to have metas on profile pages * Correct meta data helper test * Update PersonPresenter, add test to PeopleController * Creates TagPresenter. Display tag metas on tag index page * Updata meta data helper spec * Not displaying bio as the description meta on profile page for now. Privacy concerns to be cleared. * Set meta info as hashes in presenters * Move original hardcoded metas info to config/defaults.yml * metas_tags include by default the general metas, update views * Update code style, clean views * Renames TagPresenter StreamTagPresenter, updates TagController spec * Add a default_metas entry to diaspora.yml.example * Align metas hash in presenters, refactor meta data helper * Use bio as description meta if user has a public profile * Rename StreamTagPresenter to TagStreamPresenter
parent
96489e3c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/controllers/people_controller.rb 5 ajouts, 6 suppressionsapp/controllers/people_controller.rb
- app/controllers/photos_controller.rb 2 ajouts, 1 suppressionapp/controllers/photos_controller.rb
- app/controllers/posts_controller.rb 6 ajouts, 5 suppressionsapp/controllers/posts_controller.rb
- app/controllers/tags_controller.rb 8 ajouts, 2 suppressionsapp/controllers/tags_controller.rb
- app/helpers/meta_data_helper.rb 53 ajouts, 0 suppressionapp/helpers/meta_data_helper.rb
- app/helpers/open_graph_helper.rb 0 ajout, 85 suppressionsapp/helpers/open_graph_helper.rb
- app/presenters/base_presenter.rb 7 ajouts, 0 suppressionapp/presenters/base_presenter.rb
- app/presenters/person_presenter.rb 36 ajouts, 0 suppressionapp/presenters/person_presenter.rb
- app/presenters/post_presenter.rb 59 ajouts, 8 suppressionsapp/presenters/post_presenter.rb
- app/presenters/tag_stream_presenter.rb 25 ajouts, 0 suppressionapp/presenters/tag_stream_presenter.rb
- app/views/layouts/_open_graph.haml 0 ajout, 5 suppressionsapp/views/layouts/_open_graph.haml
- app/views/layouts/application.html.haml 2 ajouts, 5 suppressionsapp/views/layouts/application.html.haml
- app/views/layouts/application.mobile.haml 2 ajouts, 3 suppressionsapp/views/layouts/application.mobile.haml
- app/views/people/show.html.haml 4 ajouts, 1 suppressionapp/views/people/show.html.haml
- app/views/posts/show.html.haml 4 ajouts, 1 suppressionapp/views/posts/show.html.haml
- app/views/tags/show.haml 3 ajouts, 0 suppressionapp/views/tags/show.haml
- config/defaults.yml 3 ajouts, 0 suppressionconfig/defaults.yml
- config/diaspora.yml.example 9 ajouts, 0 suppressionconfig/diaspora.yml.example
- spec/controllers/people_controller_spec.rb 38 ajouts, 6 suppressionsspec/controllers/people_controller_spec.rb
- spec/controllers/posts_controller_spec.rb 30 ajouts, 0 suppressionspec/controllers/posts_controller_spec.rb
Chargement en cours
Veuillez vous inscrire ou vous se connecter pour commenter