#284 - Added the list all user organizations page #hacktoberfest#315
#284 - Added the list all user organizations page #hacktoberfest#315huogerac wants to merge 2 commits into
Conversation
|
@huogerac, this issue was assigned to @tulikavijay. You didnt read the comments on the issue? Sorry but I can't accept this. |
|
no problem @luanfonceca In your view, what should be the first task I could work on? |
|
Hi @huogerac, the person that was assigned has no time to work with this today, so i will reopen you pull request and review it ok? |
| <div class="panel-body"> | ||
| <h3 class="panel-title event-title">{{ organization.name }}</h3> | ||
| <p class="event-metadata"> | ||
| Created by <strong><a href="/profile/user/">{{ organization.created_by }}</a></strong> |
There was a problem hiding this comment.
You cannot put the hardcoded url like this, please use the {% url %}
| Created by <strong><a href="/profile/user/">{{ organization.created_by }}</a></strong> | ||
| </p> | ||
| <div class="event-description"> | ||
| <p>Link: /{{ organization.slug }}</p> |
There was a problem hiding this comment.
This field has no sense and adds no information, can you please remove it?
| </div> | ||
|
|
||
| <div class="panel-footer event-actions text-center"> | ||
| <a href="{% url 'update_organization' organization.slug %}" class="btn-flat gray text-upper" data-toggle="tooltip" title="" data-original-title="Edit this organization"> |
There was a problem hiding this comment.
You need to use the {% trans %} in the tooltip text.
| <p class="panel-title ">No organization created.</p> | ||
| <p> | ||
| <a href="{% url 'create_organization' %}" class="btn-flat success text-upper"> | ||
| <i class="icon-plus"></i>Create my organization</a> |
There was a problem hiding this comment.
You need to translate this text too.
|
|
||
| {% empty %} | ||
|
|
||
| <p class="panel-title ">No organization created.</p> |
There was a problem hiding this comment.
This text needs to be translated.
| view=views.UpdateOrganization.as_view(), | ||
| name='update_organization'), | ||
| url(regex=r'/list/', | ||
| view=views.ListAllUserOrganizations.as_view(), |
There was a problem hiding this comment.
Can you rename this view to ListOrganizations and not use the /list/, leave the url empty as we do in the other urls, like deck/urls.py.
| name='update_organization'), | ||
| url(regex=r'/list/', | ||
| view=views.ListAllUserOrganizations.as_view(), | ||
| name='list_all_user_organizations'), |
There was a problem hiding this comment.
This should be list_organizations to follow the other urls in speakerfight.
| return self.success_redirect(_(u'Organization updated.')) | ||
|
|
||
|
|
||
| class ListAllUserOrganizations(BaseOrganizationView, ListView): |
|
And you need to add tests too. If you have any questions, please join me on gitter: http://gitter.im/luanfonceca |
Hi,
I'm trying to contribute to the organization topic.
The idea is first having the list the user organizations #284 done.
Please let me know what is missing.