else
action = :closed
time = time_ago_in_words(changeset.closed_at, :scope => :"datetime.distance_in_words_ago")
- title = safe_join([t("browse.created"), ": ", l(changeset.created_at), " ".html_safe, t("browse.closed"), ": ", l(changeset.closed_at)])
+ title = safe_join([t("changesets.show.created", :when => l(changeset.created_at)), " ".html_safe, t("changesets.show.closed", :when => l(changeset.closed_at))])
datetime = changeset.closed_at.xmlschema
end
xhtml.style "th { text-align: left } tr { vertical-align: top }"
xhtml.table do |table|
table.tr do |tr|
- tr.th t("browse.created")
+ tr.th t(".feed.created")
tr.td l(changeset.created_at)
end
table.tr do |tr|
- tr.th t("browse.closed")
+ tr.th t(".feed.closed")
tr.td l(changeset.closed_at)
end
if changeset.user.data_public?
destroy:
success: "Account Deleted."
browse:
- created: "Created"
- closed: "Closed"
created_ago_html: "Created %{time_ago}"
closed_ago_html: "Closed %{time_ago}"
created_ago_by_html: "Created %{time_ago} by %{user}"
feed:
title: "Changeset %{id}"
title_comment: "Changeset %{id} - %{comment}"
+ created: "Created"
+ closed: "Closed"
belongs_to: "Author"
subscribe:
heading: Subscribe to the following changeset discussion?
body: "Sorry, there is no changeset with the id %{id}. Please check your spelling, or maybe the link you clicked is wrong."
show:
title: "Changeset: %{id}"
+ created: "Created: %{when}"
+ closed: "Closed: %{when}"
discussion: Discussion
join_discussion: "Log in to join the discussion"
still_open: "Changeset still open - discussion will open once the changeset is closed."
# Checks the display of the user changesets listing
def test_index_user
user = create(:user)
- create(:changeset, :user => user)
- create(:changeset, :closed, :user => user)
+ create(:changeset, :user => user, :num_changes => 1)
+ create(:changeset, :closed, :user => user, :num_changes => 1)
+ user.reload
get history_path(:format => "html", :display_name => user.display_name)
assert_response :success
end
end
+ def test_show_closed_changeset
+ changeset = create(:changeset, :closed)
+
+ sidebar_browse_check :changeset_path, changeset.id, "changesets/show"
+ end
+
def test_show_private_changeset
user = create(:user)
changeset = create(:changeset, :user => create(:user, :data_public => false))