Skip to content
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

solved issue #145: adding external link icon on the review page of the proposals with content urls #311

Merged
merged 8 commits into from
Jul 17, 2015

Conversation

hTrap
Copy link
Contributor

@hTrap hTrap commented Jul 17, 2015

Bonus: Also added redirection to the first content url if multiple urls are present in the content urls.
P.S. also fixed existing flake errors

@register.filter(name='has_content_urls')
def get_content_urls(proposal):
if proposal.content_urls:
url = proposal.content_urls.split()
Copy link
Member

Choose a reason for hiding this comment

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

The content urls may have something like TBD. In this case this will pass. Ideally it should only return all urls. Here is thread to extract all links in a paragraph https://stackoverflow.com/questions/4696418/regex-to-extract-all-urls-from-a-page.

@kracekumar
Copy link
Member

Once all changes are done. We can go ahead and merge it

@hTrap
Copy link
Contributor Author

hTrap commented Jul 17, 2015

The to_review page now shows multi external link icons for multiple content urls, also validation of urls via regex implemented.
Screenshot of the working review page below.
des
Also added whitespaces back into tho dashboard.py but flake8 is still showing errors for the same.

kracekumar added a commit that referenced this pull request Jul 17, 2015
solved issue #145: adding external link icon on the review page of the proposals with content urls
@kracekumar kracekumar merged commit cacf276 into pythonindia:master Jul 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants