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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
5cff72ad
Commit
5cff72ad
authored
Oct 15, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract tree/blob_actions partial
parent
2f05ab14
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
app/views/tree/_blob.html.haml
app/views/tree/_blob.html.haml
+1
-6
app/views/tree/_blob_actions.html.haml
app/views/tree/_blob_actions.html.haml
+5
-0
No files found.
app/views/tree/_blob.html.haml
View file @
5cff72ad
...
@@ -4,12 +4,7 @@
...
@@ -4,12 +4,7 @@
%span
.file_name
%span
.file_name
=
blob
.
name
.
force_encoding
(
'utf-8'
)
=
blob
.
name
.
force_encoding
(
'utf-8'
)
%small
#{
blob
.
mode
}
%small
#{
blob
.
mode
}
%span
.options
%span
.options
=
render
"tree/blob_actions"
.btn-group.tree-btn-group
=
link_to
"raw"
,
project_blob_path
(
@project
,
@id
),
class:
"btn very_small"
,
target:
"_blank"
=
link_to
"history"
,
project_commits_path
(
@project
,
@id
),
class:
"btn very_small"
=
link_to
"blame"
,
project_blame_path
(
@project
,
@id
),
class:
"btn very_small"
=
link_to
"edit"
,
edit_project_tree_path
(
@project
,
@id
),
class:
"btn very_small"
-
if
blob
.
text?
-
if
blob
.
text?
-
if
gitlab_markdown?
(
blob
.
name
)
-
if
gitlab_markdown?
(
blob
.
name
)
.file_content.wiki
.file_content.wiki
...
...
app/views/tree/_blob_actions.html.haml
0 → 100644
View file @
5cff72ad
.btn-group.tree-btn-group
=
link_to
"raw"
,
project_blob_path
(
@project
,
@id
),
class:
"btn very_small"
,
target:
"_blank"
=
link_to
"history"
,
project_commits_path
(
@project
,
@id
),
class:
"btn very_small"
=
link_to
"blame"
,
project_blame_path
(
@project
,
@id
),
class:
"btn very_small"
=
link_to
"edit"
,
edit_project_tree_path
(
@project
,
@id
),
class:
"btn very_small"
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