orionblastar / K666

K666 is forum discussion software, this is an attempt to write the Free version FreeK666 without violating copyright
http://k666.kr5ddit.com
MIT License
5 stars 0 forks source link

Customise Template #5

Closed procrasti closed 8 years ago

procrasti commented 8 years ago

Depends: https://github.com/orionblastar/K666/issues/3 BranchName: showusername

Show the logged in users username:

Add this to templates/index.html

----- BEGIN CHANGES TO templates/index.html ---- Hello {% with request.user as user %} {% if user.is_authenticated %} {{ user.username }} {% else %} Anonymous {% endif %} {% endwith %} ----- END CHANGES TO templates/index.html ----

orionblastar commented 8 years ago

There is no templates directory, should I create it in freek666/static/templates/ ?

procrasti commented 8 years ago

No, it's not static...

~/src/k666/freek666/templates/index.html

But you got solve #3 first.

procrasti commented 8 years ago

This is working in branch startup...

Please close this issue when you have it working.

procrasti commented 8 years ago

Do this first: https://github.com/orionblastar/K666/issues/14

procrasti commented 8 years ago

Once you test that this is in mergetest, you can close this case.

Also, you might want to merge mergetest into your FreeK666 branch... then test that you have a dynamic page there... then close this one.

Basically, assigning to you to close.

procrasti commented 8 years ago

This is now in master... will close.