Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
25b7b42c
Commit
25b7b42c
authored
Jul 29, 2011
by
Eric Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for encoding errors on 1.9.2 with the mysql gem
parent
d7a9adf8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
_dir_list_content.rhtml
app/views/repositories/_dir_list_content.rhtml
+1
-1
_revisions.rhtml
app/views/repositories/_revisions.rhtml
+1
-1
No files found.
app/views/repositories/_dir_list_content.rhtml
View file @
25b7b42c
...
@@ -22,6 +22,6 @@
...
@@ -22,6 +22,6 @@
<td
class=
"revision"
>
<%=
link_to_revision
(
changeset
,
@project
)
if
changeset
%>
</td>
<td
class=
"revision"
>
<%=
link_to_revision
(
changeset
,
@project
)
if
changeset
%>
</td>
<td
class=
"age"
>
<%=
distance_of_time_in_words
(
entry
.
lastrev
.
time
,
Time
.
now
)
if
entry
.
lastrev
&&
entry
.
lastrev
.
time
%>
</td>
<td
class=
"age"
>
<%=
distance_of_time_in_words
(
entry
.
lastrev
.
time
,
Time
.
now
)
if
entry
.
lastrev
&&
entry
.
lastrev
.
time
%>
</td>
<td
class=
"author"
>
<%=
changeset
.
nil?
?
h
(
replace_invalid_utf8
(
entry
.
lastrev
.
author
.
to_s
.
split
(
'<'
).
first
))
:
changeset
.
author
if
entry
.
lastrev
%>
</td>
<td
class=
"author"
>
<%=
changeset
.
nil?
?
h
(
replace_invalid_utf8
(
entry
.
lastrev
.
author
.
to_s
.
split
(
'<'
).
first
))
:
changeset
.
author
if
entry
.
lastrev
%>
</td>
<td
class=
"comments"
>
<%=
h
truncate
(
changeset
.
comments
,
:length
=>
50
)
unless
changeset
.
nil?
%>
</td>
<td
class=
"comments"
>
<%=
h
truncate
(
Changeset
.
to_utf8
(
changeset
.
comments
,
changeset
.
repository
.
repo_log_encoding
)
,
:length
=>
50
)
unless
changeset
.
nil?
%>
</td>
</tr>
</tr>
<%
end
%>
<%
end
%>
app/views/repositories/_revisions.rhtml
View file @
25b7b42c
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<td
class=
"checkbox"
>
<%=
radio_button_tag
(
'rev_to'
,
changeset
.
identifier
,
(
line_num
==
2
),
:id
=>
"cbto-
#{
line_num
}
"
,
:onclick
=>
"if ($('cb-
#{
line_num
}
').checked==true) {$('cb-
#{
line_num
-
1
}
').checked=true;}"
)
if
show_diff
&&
(
line_num
>
1
)
%>
</td>
<td
class=
"checkbox"
>
<%=
radio_button_tag
(
'rev_to'
,
changeset
.
identifier
,
(
line_num
==
2
),
:id
=>
"cbto-
#{
line_num
}
"
,
:onclick
=>
"if ($('cb-
#{
line_num
}
').checked==true) {$('cb-
#{
line_num
-
1
}
').checked=true;}"
)
if
show_diff
&&
(
line_num
>
1
)
%>
</td>
<td
class=
"committed_on"
>
<%=
format_time
(
changeset
.
committed_on
)
%>
</td>
<td
class=
"committed_on"
>
<%=
format_time
(
changeset
.
committed_on
)
%>
</td>
<td
class=
"author"
>
<%=
h
changeset
.
author
%>
</td>
<td
class=
"author"
>
<%=
h
changeset
.
author
%>
</td>
<td
class=
"comments"
>
<%=
textilizable
(
truncate_at_line_break
(
changeset
.
comments
))
%>
</td>
<td
class=
"comments"
>
<%=
textilizable
(
truncate_at_line_break
(
Changeset
.
to_utf8
(
changeset
.
comments
,
changeset
.
repository
.
repo_log_encoding
)
))
%>
</td>
</tr>
</tr>
<%
line_num
+=
1
%>
<%
line_num
+=
1
%>
<%
end
%>
<%
end
%>
...
...
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