Modify ↓
Opened 10 years ago
Last modified 14 months ago
#11670 new enhancement
Wiki edit page should more clearly show when page doesn't exist
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | next-stable-1.6.x |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Like the change that was made in #11663 for the Milestone Edit page, it would be more clear to use the green notification to indicate when the page does not exist.
Before:
After:
-
trac/wiki/templates/wiki_view.html
diff --git a/trac/wiki/templates/wiki_view.html b/trac/wiki/templates/wiki_view. index 4797b6a..f4be55a 100644
a b 74 74 </div> 75 75 </py:when> 76 76 <py:otherwise> 77 <p i18n:msg="name">The page ${name_of(page.resource)} does not exist.78 77 <py:if test="higher"> 79 78 <p>You could also create the same page higher in the hierarchy:</p> 80 79 <ul> -
trac/wiki/web_ui.py
diff --git a/trac/wiki/web_ui.py b/trac/wiki/web_ui.py index b524dba..a4d8dcb 100644
a b class WikiModule(Component): 602 602 if 'WIKI_CREATE' not in req.perm(page.resource): 603 603 raise ResourceNotFound(_('Page %(name)s not found', 604 604 name=page.name)) 605 add_notice(req, _("The page %(name)s does not exist. You can" 606 " create it here.", name=page.name)) 605 607 formatter = OneLinerFormatter(self.env, context) 606 608 if '/' in page.name: 607 609 parts = page.name.split('/')
Attachments (2)
Change History (6)
by , 10 years ago
by , 10 years ago
Attachment: | Before.png added |
---|
comment:1 by , 9 years ago
comment:2 by , 8 years ago
Milestone: | next-stable-1.0.x → next-stable-1.2.x |
---|
Moved ticket assigned to next-stable-1.0.x since maintenance of 1.0.x is coming to a close. Please move the ticket back if it's critical to fix on 1.0.x.
comment:3 by , 5 years ago
Milestone: | next-stable-1.2.x → next-stable-1.4.x |
---|
Note:
See TracTickets
for help on using tickets.
May not be needed after #11836.