Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
63444936
Commit
63444936
authored
Jan 07, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `to_s(:iso8601)` where appropriate
parent
fa36749b
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
12 additions
and
12 deletions
+12
-12
app/helpers/issues_helper.rb
app/helpers/issues_helper.rb
+1
-1
app/views/dashboard/issues.atom.builder
app/views/dashboard/issues.atom.builder
+1
-1
app/views/dashboard/projects/index.atom.builder
app/views/dashboard/projects/index.atom.builder
+1
-1
app/views/groups/issues.atom.builder
app/views/groups/issues.atom.builder
+1
-1
app/views/groups/show.atom.builder
app/views/groups/show.atom.builder
+1
-1
app/views/notify/repository_push_email.html.haml
app/views/notify/repository_push_email.html.haml
+1
-1
app/views/notify/repository_push_email.text.haml
app/views/notify/repository_push_email.text.haml
+1
-1
app/views/projects/commits/show.atom.builder
app/views/projects/commits/show.atom.builder
+2
-2
app/views/projects/issues/index.atom.builder
app/views/projects/issues/index.atom.builder
+1
-1
app/views/projects/show.atom.builder
app/views/projects/show.atom.builder
+1
-1
app/views/users/show.atom.builder
app/views/users/show.atom.builder
+1
-1
No files found.
app/helpers/issues_helper.rb
View file @
63444936
...
...
@@ -80,7 +80,7 @@ module IssuesHelper
xml
.
link
href:
namespace_project_issue_url
(
issue
.
project
.
namespace
,
issue
.
project
,
issue
)
xml
.
title
truncate
(
issue
.
title
,
length:
80
)
xml
.
updated
issue
.
created_at
.
strftime
(
"%Y-%m-%dT%H:%M:%SZ"
)
xml
.
updated
issue
.
created_at
.
to_s
(
:iso8601
)
xml
.
media
:thumbnail
,
width:
"40"
,
height:
"40"
,
url:
image_url
(
avatar_icon
(
issue
.
author_email
))
xml
.
author
do
|
author
|
xml
.
name
issue
.
author_name
...
...
app/views/dashboard/issues.atom.builder
View file @
63444936
...
...
@@ -4,7 +4,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.link href: issues_dashboard_url(format: :atom, private_token: current_user.try(:private_token)), rel: "self", type: "application/atom+xml"
xml.link href: issues_dashboard_url, rel: "alternate", type: "text/html"
xml.id issues_dashboard_url
xml.updated @issues.first.created_at.
strftime("%Y-%m-%dT%H:%M:%SZ"
) if @issues.any?
xml.updated @issues.first.created_at.
to_s(:iso8601
) if @issues.any?
@issues.each do |issue|
issue_to_atom(xml, issue)
...
...
app/views/dashboard/projects/index.atom.builder
View file @
63444936
...
...
@@ -4,7 +4,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.link href: dashboard_projects_url(format: :atom, private_token: current_user.try(:private_token)), rel: "self", type: "application/atom+xml"
xml.link href: dashboard_projects_url, rel: "alternate", type: "text/html"
xml.id dashboard_projects_url
xml.updated @events.latest_update_time.
strftime("%Y-%m-%dT%H:%M:%SZ"
) if @events.any?
xml.updated @events.latest_update_time.
to_s(:iso8601
) if @events.any?
@events.each do |event|
event_to_atom(xml, event)
...
...
app/views/groups/issues.atom.builder
View file @
63444936
...
...
@@ -4,7 +4,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.link href: issues_dashboard_url(format: :atom, private_token: @user.private_token), rel: "self", type: "application/atom+xml"
xml.link href: issues_dashboard_url, rel: "alternate", type: "text/html"
xml.id issues_dashboard_url
xml.updated @issues.first.created_at.
strftime("%Y-%m-%dT%H:%M:%SZ"
) if @issues.any?
xml.updated @issues.first.created_at.
to_s(:iso8601
) if @issues.any?
@issues.each do |issue|
issue_to_atom(xml, issue)
...
...
app/views/groups/show.atom.builder
View file @
63444936
...
...
@@ -4,7 +4,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.link href: group_url(@group, format: :atom, private_token: current_user.try(:private_token)), rel: "self", type: "application/atom+xml"
xml.link href: group_url(@group), rel: "alternate", type: "text/html"
xml.id group_url(@group)
xml.updated @events.latest_update_time.
strftime("%Y-%m-%dT%H:%M:%SZ"
) if @events.any?
xml.updated @events.latest_update_time.
to_s(:iso8601
) if @events.any?
@events.each do |event|
event_to_atom(xml, event)
...
...
app/views/notify/repository_push_email.html.haml
View file @
63444936
...
...
@@ -17,7 +17,7 @@
%strong
#{
link_to
(
commit
.
short_id
,
namespace_project_commit_url
(
@message
.
project_namespace
,
@message
.
project
,
commit
))
}
%div
%span
by
#{
commit
.
author_name
}
%i
at
#{
commit
.
committed_date
.
strftime
(
"%Y-%m-%dT%H:%M:%SZ"
)
}
%i
at
#{
commit
.
committed_date
.
to_s
(
:iso8601
)
}
%pre
.commit-message
=
commit
.
safe_message
...
...
app/views/notify/repository_push_email.text.haml
View file @
63444936
...
...
@@ -8,7 +8,7 @@
\
=
@message
.
reverse_compare?
?
"Deleted commits:"
:
"Commits:"
-
@message
.
commits
.
each
do
|
commit
|
#{
commit
.
short_id
}
by
#{
commit
.
author_name
}
at
#{
commit
.
committed_date
.
strftime
(
"%Y-%m-%dT%H:%M:%SZ"
)
}
#{
commit
.
short_id
}
by
#{
commit
.
author_name
}
at
#{
commit
.
committed_date
.
to_s
(
:iso8601
)
}
#{
commit
.
safe_message
}
\- - - - -
\
...
...
app/views/projects/commits/show.atom.builder
View file @
63444936
...
...
@@ -4,14 +4,14 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.link href: namespace_project_commits_url(@project.namespace, @project, @ref, format: :atom, private_token: current_user.try(:private_token)), rel: "self", type: "application/atom+xml"
xml.link href: namespace_project_commits_url(@project.namespace, @project, @ref), rel: "alternate", type: "text/html"
xml.id namespace_project_commits_url(@project.namespace, @project, @ref)
xml.updated @commits.first.committed_date.
strftime("%Y-%m-%dT%H:%M:%SZ"
) if @commits.any?
xml.updated @commits.first.committed_date.
to_s(:iso8601
) if @commits.any?
@commits.each do |commit|
xml.entry do
xml.id namespace_project_commit_url(@project.namespace, @project, id: commit.id)
xml.link href: namespace_project_commit_url(@project.namespace, @project, id: commit.id)
xml.title truncate(commit.title, length: 80)
xml.updated commit.committed_date.
strftime("%Y-%m-%dT%H:%M:%SZ"
)
xml.updated commit.committed_date.
to_s(:iso8601
)
xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon(commit.author_email))
xml.author do |author|
xml.name commit.author_name
...
...
app/views/projects/issues/index.atom.builder
View file @
63444936
...
...
@@ -4,7 +4,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.link href: namespace_project_issues_url(@project.namespace, @project, format: :atom, private_token: current_user.try(:private_token)), rel: "self", type: "application/atom+xml"
xml.link href: namespace_project_issues_url(@project.namespace, @project), rel: "alternate", type: "text/html"
xml.id namespace_project_issues_url(@project.namespace, @project)
xml.updated @issues.first.created_at.
strftime("%Y-%m-%dT%H:%M:%SZ"
) if @issues.any?
xml.updated @issues.first.created_at.
to_s(:iso8601
) if @issues.any?
@issues.each do |issue|
issue_to_atom(xml, issue)
...
...
app/views/projects/show.atom.builder
View file @
63444936
...
...
@@ -4,7 +4,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.link href: namespace_project_url(@project.namespace, @project, format: :atom, private_token: current_user.try(:private_token)), rel: "self", type: "application/atom+xml"
xml.link href: namespace_project_url(@project.namespace, @project), rel: "alternate", type: "text/html"
xml.id namespace_project_url(@project.namespace, @project)
xml.updated @events.latest_update_time.
strftime("%Y-%m-%dT%H:%M:%SZ"
) if @events.any?
xml.updated @events.latest_update_time.
to_s(:iso8601
) if @events.any?
@events.each do |event|
event_to_atom(xml, event)
...
...
app/views/users/show.atom.builder
View file @
63444936
...
...
@@ -4,7 +4,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.link href: user_url(@user, :atom), rel: "self", type: "application/atom+xml"
xml.link href: user_url(@user), rel: "alternate", type: "text/html"
xml.id user_url(@user)
xml.updated @events.latest_update_time.
strftime("%Y-%m-%dT%H:%M:%SZ"
) if @events.any?
xml.updated @events.latest_update_time.
to_s(:iso8601
) if @events.any?
@events.each do |event|
event_to_atom(xml, event)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment