[Rt-commit] [svn] r816 - in RTx-Atom: . html/Atom html/Atom/0.3
html/Atom/0.3/Elements html/Atom/0.3/NoAuth html/Atom/0.3/Search
autrijus at pallas.eruditorum.org
autrijus at pallas.eruditorum.org
Mon May 3 10:38:53 EDT 2004
Author: autrijus
Date: Mon May 3 10:38:52 2004
New Revision: 816
Modified:
RTx-Atom/ (props changed)
RTx-Atom/html/Atom/0.3/Elements/Link
RTx-Atom/html/Atom/0.3/NoAuth/feed.css
RTx-Atom/html/Atom/0.3/NoAuth/index.css
RTx-Atom/html/Atom/0.3/Search/index
RTx-Atom/html/Atom/0.3/index
RTx-Atom/html/Atom/dhandler
Log:
----------------------------------------------------------------------
r4418 at not: autrijus | 2004-05-03T14:28:42.981953Z
* Rename 'Create' to 'Add'.
* Change master index to an <entry>, not a <feed>.
----------------------------------------------------------------------
r4419 at not: autrijus | 2004-05-03T14:38:27.710710Z
* Redirect using absolute paths to /Atom/0.3/.
----------------------------------------------------------------------
Modified: RTx-Atom/html/Atom/0.3/Elements/Link
==============================================================================
--- RTx-Atom/html/Atom/0.3/Elements/Link (original)
+++ RTx-Atom/html/Atom/0.3/Elements/Link Mon May 3 10:38:52 2004
@@ -4,7 +4,7 @@
<%INIT>
my %TextMap = (
'alternate' => 'HTML', # loc
- 'service.post' => 'Create',# loc
+ 'service.post' => 'Add', # loc
'service.feed' => 'Index', # loc
'service.edit' => 'Edit', # loc
);
@@ -13,7 +13,7 @@
'alternate' => 'h',
'next' => 'n',
'prev' => 'p',
- 'service.post' => 'c',
+ 'service.post' => 'a',
'service.feed' => 'i',
);
my $accesskey = $KeyMap{$Relation};
Modified: RTx-Atom/html/Atom/0.3/NoAuth/feed.css
==============================================================================
--- RTx-Atom/html/Atom/0.3/NoAuth/feed.css (original)
+++ RTx-Atom/html/Atom/0.3/NoAuth/feed.css Mon May 3 10:38:52 2004
@@ -53,7 +53,7 @@
color: #ccccff;
}
-a.create {
+a.add {
background-color: #66ee66;
font-weight: bold;
}
@@ -109,7 +109,7 @@
}
-issued,modified,created,name,id {
+issued, modified, created, name, id {
color:#999999;
font-size:80%;
margin-top:25px;
Modified: RTx-Atom/html/Atom/0.3/NoAuth/index.css
==============================================================================
--- RTx-Atom/html/Atom/0.3/NoAuth/index.css (original)
+++ RTx-Atom/html/Atom/0.3/NoAuth/index.css Mon May 3 10:38:52 2004
@@ -16,8 +16,8 @@
link[rel="service.feed"]:before {
content: attr(title);
- font-size:150%;
- color:#000000;
- text-align:left;
- font-weight:bold;
+}
+
+issued, entry modified, created, id {
+ display: none;
}
Modified: RTx-Atom/html/Atom/0.3/Search/index
==============================================================================
--- RTx-Atom/html/Atom/0.3/Search/index (original)
+++ RTx-Atom/html/Atom/0.3/Search/index Mon May 3 10:38:52 2004
@@ -27,9 +27,8 @@
<title mode="escaped"><% $entry->{Name} || "#$entry->{Id}" %></title>
<& $Link, Relation => "service.edit", URI => "$FeedURI/$entry->{Id}", Title => loc("Edit"). ": $entry->{Name}", IsEntry => 1 &>
<summary mode="escaped"><% $entry->{Description} %></summary>
- <modified><% $entry->{LastUpdated} %></modified>
<issued><% $entry->{Created} %></issued>
- <created><% $entry->{Created} %></created>
+ <modified><% $entry->{LastUpdated} %></modified>
<id><% $entry->{URI} %></id>
% if ($entry->{HTML_URL}) {
<& $Link, Type => 'text/html', URI => "$RT::WebURL$entry->{HTML_URL}", Title => $entry->{Name} &>
Modified: RTx-Atom/html/Atom/0.3/index
==============================================================================
--- RTx-Atom/html/Atom/0.3/index (original)
+++ RTx-Atom/html/Atom/0.3/index Mon May 3 10:38:52 2004
@@ -1,20 +1,21 @@
%# Put service links to all actions and objects here
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="<% $BaseURI %>/NoAuth/index.css"?>
-<feed version="0.3" xmlns="http://purl.org/atom/ns#">
+<entry xmlns="http://purl.org/atom/ns#">
<title><&|/l&>Homepage</&></title>
<author>
<name><% $RT::Organization %></name>
<url><% $RT::WebURL %></url>
</author>
+ <id><% $RT::rtname %></id>
<& $Link, Type => 'text/html', URI => $RT::WebURL, Title => loc("Homepage") &>
% foreach my $type (@{$m->comp('Elements/Introspect', Want => 'TopLevelCollections')}) {
<& $Link, Relation => 'service.feed', URI => "$BaseURI/$type", Title => loc($type), IsEntry => 1 &>
<& $Link, Relation => 'service.post', URI => "$BaseURI/$type!add", Title => loc("Create") . ": " . loc($type) &>
% }
+ <issued><% $RT::SystemUser->UserObj->CreatedObj->W3CDTF %></issued>
<modified><% $Now->W3CDTF %></modified>
- <generator url="http://www.bestpractical.com/rt/" version="<% $RT::VERSION %>">RT</generator>
-</feed>
+</entry>
<%ARGS>
$Path
$BaseURI
Modified: RTx-Atom/html/Atom/dhandler
==============================================================================
--- RTx-Atom/html/Atom/dhandler (original)
+++ RTx-Atom/html/Atom/dhandler Mon May 3 10:38:52 2004
@@ -1,7 +1,7 @@
%# The main dispatcher for RT/REST 2.0
<%INIT>
$r->content_type('text/html');
-$r->header_out(Location => '0.3/');
+$r->header_out(Location => "$RT::WebPath/Atom/0.3/");
$r->status(302);
</%INIT>
<%FLAGS>
More information about the Rt-commit
mailing list