-
Notifications
You must be signed in to change notification settings - Fork 15
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
Backend and frontend changes #2
Conversation
more changes coming |
simplemde-markdown-editor is used here because it is one of the best available js markdown editors and writing an editor from scratch will be reinventing the wheel. Instead this editor can be tweaked to suite our needs. https://github.com/NextStepWebs/simplemde-markdown-editor
fixes dipy#5 custom youtube filter replaces youtube links with embed codes while rendering views
} | ||
|
||
|
||
// carousal-main styles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
carousal -> carousel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing. fixed
Apart from my small comments, seems good. I'll wait on the fixes / replies to comments and on @Garyfallidis to merge this. GJ 👍 |
url = models.CharField(max_length=200) | ||
author = models.CharField(max_length=200) | ||
doi = models.CharField(max_length=100, null=True, blank=True) | ||
journal = models.CharField(max_length=200, null=True, blank=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you intend on keeping track of the type of publication (conference abstract, journal paper, etc)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have looked at bibtex of several publications but could not find any field that groups them as conference and journal paper. So I think we will have to enter it manually. I can provide a field for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added a field to keep track of publication type like book, article, inproceedings etc. in commit 60e95d4
General question, which is related to the discussion we had earlier today: do we really need people to be able to modify the installation, overview, etc sections directly in the admin page using the editor? I'm not against it, I'm just wondering if it's really more complicated to just update the content in the page in the git repo, and just push that. Again, maybe it's to make it easier for everyone to maintain. I don't remember if it was already discussed. |
@@ -0,0 +1,120 @@ | |||
from django.shortcuts import render, redirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember if we agreed on using PEP8 for .py files, but normally imports should be ordered alphabetically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am trying to maintain PEP8 . So should the imports be like
from django.shortcuts import redirect, render
or is it with the other imports like
from website.forms import AddEditCarouselImageForm
from website.models import CarouselImage
from .tools import has_commit_permission
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is mainly to order each line, not necessarily the elements of each line. So, more like your second case.
Also, officially (https://www.python.org/dev/peps/pep-0008/#imports), if you look at the third point, they should be separated in 3 blocks: system / basic python imports first, then the third-party imports (like Django), and then the imports from the current project.
Really good progress! Good job. Also, quick note, I went quite fast through the CSS, because this is not something I can easily "view" just in my head, like this. The website has a nice layout and renders well on my setup, so that's a good first step. |
pages can be created edited and deleted fixed sections are fixed and can only be edited
Ok. @ghoshbishakh I don't know if you have any other commits lined-up for this PR, but it is getting quite huge. I'd like to merge it, else it will not be reviewable. So, please tell me if you absolutely need to add other commits, or if I can make another quick review of the new commits, and then merge. Also, for your next work, please make sure you create branches, instead of working in your master branch. That will make the workflow easier. You will also be able to make quick, small branches, leading to small PRs. |
You may merge it. I will make a separate PR for the rest of the changes On Tue, Jun 21, 2016 at 6:45 PM, Jean-Christophe Houde <
|
Cool, thanks. I went through the last commits after the previous review I made. A batch of questions or issues. For issues, you can tag them in the issue tracker and tackle them after the merge. I will merge, but you still can (and should) answer my questions here.
|
|
No description provided.