BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3f0d8079
Commit
3f0d8079
authored
Nov 22, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file name overflow fixed
parent
a59b7090
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
1 deletion
+15
-1
projects.css.scss
app/assets/stylesheets/projects.css.scss
+1
-0
tree_decorator.rb
app/decorators/tree_decorator.rb
+2
-0
tree.rb
app/models/tree.rb
+4
-0
project.html.haml
app/views/layouts/project.html.haml
+3
-0
_tree_file.html.haml
app/views/refs/_tree_file.html.haml
+4
-0
index.html.haml
app/views/snippets/index.html.haml
+1
-1
No files found.
app/assets/stylesheets/projects.css.scss
View file @
3f0d8079
...
...
@@ -385,3 +385,4 @@ body.dashboard.project-page .news-feed .project-updates a.project-update span.up
body
.project-page
.team_member_new
.span-6
,
.team_member_edit
.span-6
{
padding
:
10px
0
;
}
body
.projects-page
input
.text.git-url.project_list_url
{
width
:
165px
;
}
app/decorators/tree_decorator.rb
View file @
3f0d8079
...
...
@@ -6,6 +6,8 @@ class TreeDecorator < ApplicationDecorator
part_path
=
""
parts
=
path
.
split
(
"
\/
"
)
parts
=
parts
[
0
...-
1
]
if
is_blob?
yield
(
h
.
link_to
(
".."
,
"#"
,
:remote
=>
:true
))
if
parts
.
count
>
max_links
parts
.
each
do
|
part
|
...
...
app/models/tree.rb
View file @
3f0d8079
...
...
@@ -22,4 +22,8 @@ class Tree
def
is_blob?
tree
.
is_a?
(
Grit
::
Blob
)
end
def
empty?
data
.
blank?
end
end
app/views/layouts/project.html.haml
View file @
3f0d8079
...
...
@@ -46,6 +46,9 @@
-
if
@commit
=
link_to
truncate
(
commit_name
(
@project
,
@commit
),
:length
=>
15
),
project_commit_path
(
@project
,
:id
=>
@commit
.
id
),
:class
=>
current_page?
(
:controller
=>
"commits"
,
:action
=>
"show"
,
:project_id
=>
@project
,
:id
=>
@commit
.
id
)
?
"current"
:
nil
-
if
can?
current_user
,
:admin_project
,
@project
=
link_to
"Edit"
,
edit_project_path
(
@project
),
:class
=>
(
current_page?
(
edit_project_path
(
@project
)))
?
"current"
:
nil
.medium-tags
{
:style
=>
'padding: 10px 0 0 10px; width: 210px;'
}=
tag_list
@project
.project-content
...
...
app/views/refs/_tree_file.html.haml
View file @
3f0d8079
...
...
@@ -8,8 +8,12 @@
%br
/
-
if
file
.
text?
.view_file_content
-
unless
file
.
empty?
:erb
<%=
raw
file
.
colorize
%>
-
else
%h3
%center
Empty file
-
elsif
file
.
image?
.view_file_content_image
%img
{
:src
=>
"data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"
}
...
...
app/views/snippets/index.html.haml
View file @
3f0d8079
%div
-
if
can?
current_user
,
:write_snippet
,
@project
=
link_to
'New Snippet'
,
new_project_snippet_path
(
@project
),
:class
=>
"button append-bottom-10"
=
link_to
'New Snippet'
,
new_project_snippet_path
(
@project
),
:class
=>
"
grey-
button append-bottom-10"
%table
.round-borders
#snippets-table
%thead
...
...
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