From 805d4a829e64b8b6aaf48a5eef57ed9eccb8b8cb Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Sun, 23 Jan 2005 17:05:28 +0000 Subject: [PATCH] further XML well-formedness fixes --- app/views/wiki/edit.rhtml | 4 +-- app/views/wiki/new.rhtml | 4 +-- app/views/wiki/new_system.rhtml | 23 +++++++++------ app/views/wiki/new_web.rhtml | 19 +++++++++---- app/views/wiki/recently_revised.rhtml | 40 +++++++++++++-------------- 5 files changed, 52 insertions(+), 38 deletions(-) diff --git a/app/views/wiki/edit.rhtml b/app/views/wiki/edit.rhtml index eb812d5d..8cb202b1 100755 --- a/app/views/wiki/edit.rhtml +++ b/app/views/wiki/edit.rhtml @@ -13,9 +13,9 @@

- as + as + onClick="this.value == 'AnonymousCoward' ? this.value = '' : true" /> | Cancel (unlocks page)

diff --git a/app/views/wiki/new.rhtml b/app/views/wiki/new.rhtml index fcd0cf86..8871c7fd 100755 --- a/app/views/wiki/new.rhtml +++ b/app/views/wiki/new.rhtml @@ -11,8 +11,8 @@

- as - + as +

diff --git a/app/views/wiki/new_system.rhtml b/app/views/wiki/new_system.rhtml index 26f3bcac..c684da4c 100755 --- a/app/views/wiki/new_system.rhtml +++ b/app/views/wiki/new_system.rhtml @@ -2,7 +2,8 @@

Congratulations on succesfully installing and starting Instiki. - Since this is the first time Instiki has been run on this port, you'll need to do a brief one-time setup. + Since this is the first time Instiki has been run on this port, + you'll need to do a brief one-time setup.

@@ -11,12 +12,17 @@

Name and address for your first web

- The name of the web is included in the title on all pages. The address is the base path that all pages within the web live beneath. Ex: the address "rails" gives URLs like /rails/show/HomePage. The address can only consist of letters & digits. + The name of the web is included in the title on all pages. + The address is the base path that all pages within the web live beneath. + Ex: the address "rails" gives URLs like /rails/show/HomePage. + The address can only consist of letters and digits.
- Name:    - Address: + Name: +    + Address:
@@ -27,14 +33,15 @@ Everyone with this password will be able to do this, so pick it carefully.
- Password:    - Verify: + Password: +    + Verify:

- +

diff --git a/app/views/wiki/new_web.rhtml b/app/views/wiki/new_web.rhtml index 39964fd6..7a64f6e2 100755 --- a/app/views/wiki/new_web.rhtml +++ b/app/views/wiki/new_web.rhtml @@ -1,18 +1,25 @@ <% @title = "New Wiki Web"; @content_width = 500 %>

- Each web serves as an isolated name space for wiki pages, so different subjects or projects can write about different MuppetShows. + Each web serves as an isolated name space for wiki pages, + so different subjects or projects can write about different MuppetShows.

-
+ +
  1. Name and address for your new web

    - The name of the web is included in the title on all pages. The address is the base path that all pages within the web live beneath. Ex: the address "rails" gives URLs like /rails/show/HomePage. The address can only consist of letters & digits. + The name of the web is included in the title on all pages. + The address is the base path that all pages within the web live beneath. + Ex: the address "rails" gives URLs like /rails/show/HomePage. + The address can only consist of letters and digits.
    - Name:    + Name: +    Address:
  2. @@ -22,9 +29,9 @@

    Enter system password - + and - +

    diff --git a/app/views/wiki/recently_revised.rhtml b/app/views/wiki/recently_revised.rhtml index ca9390d7..902db5ff 100755 --- a/app/views/wiki/recently_revised.rhtml +++ b/app/views/wiki/recently_revised.rhtml @@ -8,25 +8,25 @@ <% end %> -<% revision_date = Date.new(2100) %> -
      -<% for page in @pages_by_revision %> - <% if page.revised_on < revision_date %> -
    - <%= DateTime.new(page.revised_on.year, page.revised_on.mon, - page.revised_on.day).strftime('%B %e, %Y') - %> -
      +<% unless @pages_by_revision.empty? %> + <% revision_date = @pages_by_revision.first.revised_on %> +

      <%= revision_date.strftime('%B %e, %Y') %>

      +
        + <% for page in @pages_by_revision %> + <% if page.revised_on < revision_date %> + <% revision_date = page.revised_on %> +
      +

      <%= revision_date.strftime('%B %e, %Y') %>

      +
        + <% end %> +
      • + <%= page.plain_name %> + +
      • <% end %> - -
      • - <%= page.plain_name %> - -
      • - - <% revision_date = page.revised_on %> +
      <% end %>