Ask Your Question
1

Signin template is ignored

asked 2011-03-05 08:22:30 -0600

s gravatar image

updated 2011-03-05 08:23:00 -0600

Hi, how do I skin the signin/signout templates?

The files from the templates directory are ignored!

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-03-05 11:59:08 -0600

Evgeny gravatar image

updated 2011-03-05 12:00:54 -0600

Hey, sorry for the delay. The way templates are read is different from Django standard, because there is an attempt to implement skin support.

Skin is composed of templates and media. At this time edit the default skin directly and keep your changes in git - this is the most sane way to customize skin and at the same time be able to upgrade them. Try to do as much as possible in the file style.css. The template signin is askbot/skins/default/templates/authopenid/signin.html.

What do you want to change? If you need to enable/disable certain login providers - there will be such function by Monday.

Some older answers that you will find for query "skins" or "customization" may help you, but if something is not clear - please do ask.

Thanks.

edit flag offensive delete link more

Comments

Thanks for the answer. But the problem is that I forked the initial `default` skin, renamed it and start working on it. The code is in bzr, but I can put it on github if you really want to have a look: http://bazaar.launchpad.net/~sushkov/ubuntu-website/light-askbot-theme/files It looks basically like this: http://intreaba.ubuntu.ro/questions/ (Work in progress...)
s gravatar images ( 2011-03-06 06:39:09 -0600 )edit
And doesn't matter what I change in `askbot/skins/default/templates/authopenid/signin.html` it doesn't show up (just renders the old `default` file)...
s gravatar images ( 2011-03-06 06:43:31 -0600 )edit
Most likely it is using a copy from your forked skin, it contains that file as well. You will save yourself a lot of trouble if you put your custom skin in the place of default and keep it in git, I know it sounds strange, but being able to merge skin upgrades helps a lot. Imagine in askbot skin javascript changes tomorrow - you will not be able to use that unless you copy the changed files manually. Also, templates themselves, in particular question.html and user profile will change. The bottom line is that until the templates are considered "stable" use of git is the only reasonable method.
Evgeny gravatar imageEvgeny ( 2011-03-06 12:34:22 -0600 )edit
In your skin design one more thing seems to be missing - when you enter search query - the page is rendered by the javascript. Unfortunately at this point any layout changes in html must be replicated in the javascript (file live_search.js - there are several functions with name starting with prefix render_ , it is not too difficult though). Also in some places tags are deletable - notably when you search by tags - somehow that is lost on your site.
Evgeny gravatar imageEvgeny ( 2011-03-06 14:01:55 -0600 )edit
Thanks. I know about lack of styles for delete buttons, and I also merged the new live-search, and in fact, I'm ready to make merges every time a new version comes out, Im just trying to understand why it has to be the `default` theme...
s gravatar images ( 2011-03-06 15:42:36 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-03-05 08:22:30 -0600

Seen: 238 times

Last updated: Mar 05 '11