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

Topics Tags on Main Page #74

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

sarthikadhawan
Copy link

Checklist

  • My branch is up-to-date with the upstream develop branch.
  • I have added necessary documentation (if appropriate). [Not applicable]

Which issue does this PR fix?:
fixes: #63

This PR lists out some topics on the main page, clicking them leads one to the result page for those particular topics. There is a "more" button which can be clicked, opens up a drop down menu listing out all the topics.

Why do we need this PR?:

Usability improvement, better learning experience.

TODOs (if any):

Could add these as a left sidebar, perhaps?

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
Copy link
Member

Choose a reason for hiding this comment

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

You must move the css code to its own file and link it here. 👍

search/views.py Outdated
@@ -37,14 +52,48 @@ def error404(request):
def error500(request):
return render(request, 'cosmos/error/HTTP500.html')

# Generate all combinations of a search literal
Copy link
Member

Choose a reason for hiding this comment

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

This pull request brings in the changes from your previous pull request. You might want to separate it for independent review.

@AdiChat
Copy link
Member

AdiChat commented Mar 4, 2018

Nice work 👍

I have added a few comments. Kindly take a look and make appropriate changes. 👍

@sarthikadhawan
Copy link
Author

Hi,

For the topic tags to return all results while keeping the tabs clean, we would need the previous function!

@AdiChat
Copy link
Member

AdiChat commented Mar 10, 2018

@xx621998xx Which function are you considering?

Kindly resolve the conflicts and take a look at the above comments.

@sarthikadhawan
Copy link
Author

Hi,

The generate_perm function from the earlier pull request is required in this pull request.

@AdiChat
Copy link
Member

AdiChat commented Mar 10, 2018

This feature is similar to the tags under the search bar of Quark.

You must get tags from tags.json instead of metadata.json. You can shuffle the list using an inbuilt function and pick up the first 10 tags. You do not need the generate_perm function.

Kindly take a look into this and let us know if you need any help.


<head>
Copy link
Member

Choose a reason for hiding this comment

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

You are including the header {% extends 'cosmos/header.html' %}, so, you do not need this.

<link rel="stylesheet" href="/home/sarthika/Documents/galsquared/cosmos-search/search/templates/cosmos/style.css"/>

</head>
<style>
Copy link
Member

Choose a reason for hiding this comment

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

You must move the css code to its own file.

<article>
<body>
Copy link
Member

Choose a reason for hiding this comment

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

This is, in fact, inside of body tags: {% block body %}. You need to fix this code.

@AdiChat
Copy link
Member

AdiChat commented Mar 14, 2018

I have added a few comments. Take a look and make appropriate changes 👍

@AdiChat
Copy link
Member

AdiChat commented Mar 31, 2018

@xx621998xx Any updates on this feature? 🤔

Minor changes are required before this can be merged. If you are facing any trouble, kindly let us know and we will help you. 👍

@AdiChat AdiChat mentioned this pull request Apr 15, 2018
4 tasks
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.

Topic Tags on Main page
2 participants