Skip to content

#284 - Added the list all user organizations page #hacktoberfest#315

Open
huogerac wants to merge 2 commits into
luanfonceca:masterfrom
huogerac:list_user_organizations
Open

#284 - Added the list all user organizations page #hacktoberfest#315
huogerac wants to merge 2 commits into
luanfonceca:masterfrom
huogerac:list_user_organizations

Conversation

@huogerac

Copy link
Copy Markdown

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.

@luanfonceca

luanfonceca commented Oct 16, 2017

Copy link
Copy Markdown
Owner

@huogerac, this issue was assigned to @tulikavijay. You didnt read the comments on the issue?

Sorry but I can't accept this.

@huogerac

Copy link
Copy Markdown
Author

no problem @luanfonceca
It seemed for me the correct order (regarding organization) work on that list first...

In your view, what should be the first task I could work on?
Thanks

@luanfonceca

Copy link
Copy Markdown
Owner

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>

@luanfonceca luanfonceca Oct 17, 2017

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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">

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to translate this text too.


{% empty %}

<p class="panel-title ">No organization created.</p>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This text needs to be translated.

Comment thread organization/urls.py
view=views.UpdateOrganization.as_view(),
name='update_organization'),
url(regex=r'/list/',
view=views.ListAllUserOrganizations.as_view(),

@luanfonceca luanfonceca Oct 17, 2017

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread organization/urls.py
name='update_organization'),
url(regex=r'/list/',
view=views.ListAllUserOrganizations.as_view(),
name='list_all_user_organizations'),

@luanfonceca luanfonceca Oct 17, 2017

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be list_organizations to follow the other urls in speakerfight.

Comment thread organization/views.py
return self.success_redirect(_(u'Organization updated.'))


class ListAllUserOrganizations(BaseOrganizationView, ListView):

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename this View.

@luanfonceca

luanfonceca commented Oct 17, 2017

Copy link
Copy Markdown
Owner

And you need to add tests too.

If you have any questions, please join me on gitter: http://gitter.im/luanfonceca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants