Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds activity stream events of the form: USER added/updated/deleted the extra "EXTRA" to/in/from the dataset DATASET
- Loading branch information
Sean Hammond
committed
Feb 2, 2012
1 parent
f3a4c77
commit 21ecae9
Showing
5 changed files
with
104 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
ckan/templates/activity_streams/changed_package_extra.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<html | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:i18n="http://genshi.edgewall.org/i18n" | ||
xmlns:py="http://genshi.edgewall.org/" | ||
xmlns:xi="http://www.w3.org/2001/XInclude" | ||
py:strip="" | ||
> | ||
<xi:include href="../_util.html" /> | ||
<div> | ||
<div style="font-weight:bold;"> | ||
${h.linked_user(activity.user_id)} | ||
<span style="background:yellow;">changed</span> | ||
the extra "${detail.data.package_extra.key}" | ||
in the dataset ${package_summary(activity.data.package)}<br/> | ||
${h.render_datetime(activity.timestamp, '%B %d %Y')} | ||
</div> | ||
<div style="color:#999;"> | ||
${h.markdown_extract(activity.data.package.notes)} | ||
</div> | ||
</div> | ||
</html> |
21 changes: 21 additions & 0 deletions
21
ckan/templates/activity_streams/deleted_package_extra.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<html | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:i18n="http://genshi.edgewall.org/i18n" | ||
xmlns:py="http://genshi.edgewall.org/" | ||
xmlns:xi="http://www.w3.org/2001/XInclude" | ||
py:strip="" | ||
> | ||
<xi:include href="../_util.html" /> | ||
<div> | ||
<div style="font-weight:bold;"> | ||
${h.linked_user(activity.user_id)} | ||
<span style="background:yellow;">deleted</span> | ||
the extra "${detail.data.package_extra.key}" | ||
from the dataset ${package_summary(activity.data.package)}<br/> | ||
${h.render_datetime(activity.timestamp, '%B %d %Y')} | ||
</div> | ||
<div style="color:#999;"> | ||
${h.markdown_extract(activity.data.package.notes)} | ||
</div> | ||
</div> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<html | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:i18n="http://genshi.edgewall.org/i18n" | ||
xmlns:py="http://genshi.edgewall.org/" | ||
xmlns:xi="http://www.w3.org/2001/XInclude" | ||
py:strip="" | ||
> | ||
<xi:include href="../_util.html" /> | ||
<div> | ||
<div style="font-weight:bold;"> | ||
${h.linked_user(activity.user_id)} | ||
<span style="background:yellow;">added</span> | ||
the extra "${detail.data.package_extra.key}" | ||
to the dataset ${package_summary(activity.data.package)}<br/> | ||
${h.render_datetime(activity.timestamp, '%B %d %Y')} | ||
</div> | ||
<div style="color:#999;"> | ||
${h.markdown_extract(activity.data.package.notes)} | ||
</div> | ||
</div> | ||
</html> |