-
Notifications
You must be signed in to change notification settings - Fork 344
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
Port accounts
app templates to Django template syntax
#1151
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
@brylie could they clarify this section? Which views should we create? |
The key phrase is "as needed", which may include the possibility that no new views are needed. The goal is to build the account templates using Django views/template syntax. The specifics are up to the developer. Perhaps it would be easier to just build the remaining account templates from scratch without regard to the existing Backbone code? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I'll take a look at this task today and start a PR. |
Note: my goal is to remove the |
@brylie, you don't have to migrate all views. I think you are already aware of that but let me write down my thoughts to recap our strategy once again. 😄 For example, we don't use There is no useful case to keep
We can remove get_feed. As a side note, its implementation is wrong. It returns all threads, not all threads of a user. So basically it is ThreadListView. Also, it is not related to accounts app. Such an implementation should be in threads app.
|
We want to simplify the CiviWiki project by removing JavaScript SPA code written in Backbone.js and using Django templates instead. We will work through the Backbone templates in the
accounts
app to convert the template syntax from Backbone to Django. We want to maintain the visual styling. Below is a checklist of the relevant Backbone templates to be ported to complete this task.Note: Backbone markup can be found between
{% verbatim %}
and{% endverbatim %}
template tags as well as within{% block backbone_template %}
.Task
Port the following templates to Django template syntax and ensure they render correctly via the relevant Django view.
Note: all template baths below start within the
accounts/template/accounts/
directory, for brevity.account.html
to Django template syntax #1199settings.html
feed.html
- moved tothreads
app for follow-up worksettings.html
User
orProfile
modelcivis
followers
following
categories
threads
drafts
edit_user
delete_user
upload_profile_image
clear_profile_image
request_follow
request_unfollow
edit_user_categories
ProfileEdit
viewProfileActivationView
ProfileSetupView
user_setup.html
and any related routing logic (such as where we force the user through the setup wizard)update_settings.html
translate
tags for all accounts UI textsThe text was updated successfully, but these errors were encountered: