Skip to content

Topics Tags on Main Page#74

Open
sarthikadhawan wants to merge 18 commits intoOpenGenus:masterfrom
sarthikadhawan:galsquared
Open

Topics Tags on Main Page#74
sarthikadhawan wants to merge 18 commits intoOpenGenus:masterfrom
sarthikadhawan:galsquared

Conversation

@sarthikadhawan
Copy link
Copy Markdown

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?

Comment thread search/templates/cosmos/index.html Outdated
<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
Copy Markdown
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. 👍

Comment thread search/views.py Outdated
def error500(request):
return render(request, 'cosmos/error/HTTP500.html')

# Generate all combinations of a search literal
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Author

Hi,

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

@AdiChat
Copy link
Copy Markdown
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
Copy Markdown
Author

Hi,

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

@AdiChat
Copy link
Copy Markdown
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.

{% load random_numbers %}
{% load static %}

<head>
Copy link
Copy Markdown
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
Copy Markdown
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.


</style>
<article>
<body>
Copy link
Copy Markdown
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
Copy Markdown
Member

AdiChat commented Mar 14, 2018

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

@AdiChat
Copy link
Copy Markdown
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