Changeset 80caafff3993c879fd2b674b82c62913fdaf45ad


Ignore:
Timestamp:
15.03.2013 01:13:21 (7 years ago)
Author:
Stanislaw Klekot <dozzie@…>
Branches:
b66903eafbcb1d49112014abc82c8bf683413db0, prototype, prototype-new-outfit
Children:
aff0bfa57e67fbd91d18f9dfd5032ece340ae2dd
Parents:
270f80d2a0361249b7c29ae130e3fb8af88b1312
git-author:
Stanislaw Klekot <dozzie@…> (15.03.2013 01:13:21)
git-committer:
Stanislaw Klekot <dozzie@…> (15.03.2013 01:13:21)
Message:

Renamed create_page to create_wiki.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • dashwiki/urls.py

    rb29ee6 r80caaf  
    1414 
    1515  (r'^macros',  'list_macros'), 
    16   (r'^newpage', 'create_page'), 
     16  (r'^newpage', 'create_wiki'), 
    1717) 
  • dashwiki/wiki/views.py

    r270f80 r80caaf  
    109109# }}} 
    110110#----------------------------------------------------------------------------- 
    111 # create_page() {{{ 
    112  
    113 @csrf_exempt 
    114 def create_page(request): 
     111# create_wiki() {{{ 
     112 
     113@csrf_exempt 
     114def create_wiki(request): 
    115115  template = loader.get_template('create_wiki.html') 
    116116 
  • templates/create_wiki.html

    r270f80 r80caaf  
    2828</p> 
    2929{% else %} 
    30 <form method="post" action="{% url wiki.views.create_page %}"> 
     30<form method="post" action="{% url wiki.views.create_wiki %}"> 
    3131  <input type="text" name="page_name" cols="80" 
    3232    value="{% if page_name %}{{ page_name }}{% endif %}" /> 
  • templates/template.html

    r270f80 r80caaf  
    3737    <tr> 
    3838      <td> 
    39         <a href="{% url wiki.views.create_page %}">Create new page</a> 
     39        <a href="{% url wiki.views.create_wiki %}">Create new page</a> 
    4040      </td> 
    4141      <td> 
Note: See TracChangeset for help on using the changeset viewer.