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
Boxiang Sun
gitlab-ce
Commits
694388df
Commit
694388df
authored
Mar 06, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:gitlabhq/gitlabhq
parents
cf6a0ff7
75f595ac
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
CHANGELOG
CHANGELOG
+1
-0
app/assets/javascripts/gfm_auto_complete.js.coffee
app/assets/javascripts/gfm_auto_complete.js.coffee
+12
-0
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+1
-0
app/views/projects/tree/_readme.html.haml
app/views/projects/tree/_readme.html.haml
+1
-1
No files found.
CHANGELOG
View file @
694388df
...
@@ -8,6 +8,7 @@ v 6.7.0
...
@@ -8,6 +8,7 @@ v 6.7.0
- Show contribution guide link for new issue form (Jeroen van Baarsen)
- Show contribution guide link for new issue form (Jeroen van Baarsen)
- Fix CI status for merge requests from fork
- Fix CI status for merge requests from fork
- Added option to remove issue assignee on project issue page and issue edit page (Jason Blanchard)
- Added option to remove issue assignee on project issue page and issue edit page (Jason Blanchard)
- Converted all the help sections into markdown
v 6.6.2
v 6.6.2
- Fix 500 error on branch/tag create or remove via UI
- Fix 500 error on branch/tag create or remove via UI
...
...
app/assets/javascripts/gfm_auto_complete.js.coffee
View file @
694388df
...
@@ -13,6 +13,7 @@ GitLab.GfmAutoComplete =
...
@@ -13,6 +13,7 @@ GitLab.GfmAutoComplete =
Members
:
Members
:
template
:
'<li data-value="${username}">${username} <small>${name}</small></li>'
template
:
'<li data-value="${username}">${username} <small>${name}</small></li>'
# Issues and MergeRequests
Issues
:
Issues
:
template
:
'<li data-value="${id}"><small>${id}</small> ${title} </li>'
template
:
'<li data-value="${id}"><small>${id}</small> ${title} </li>'
...
@@ -46,11 +47,22 @@ GitLab.GfmAutoComplete =
...
@@ -46,11 +47,22 @@ GitLab.GfmAutoComplete =
before_save
:
(
issues
)
->
before_save
:
(
issues
)
->
$
.
map
issues
,
(
i
)
->
id
:
i
.
iid
,
title
:
sanitize
(
i
.
title
),
search
:
"
#{
i
.
iid
}
#{
i
.
title
}
"
$
.
map
issues
,
(
i
)
->
id
:
i
.
iid
,
title
:
sanitize
(
i
.
title
),
search
:
"
#{
i
.
iid
}
#{
i
.
title
}
"
input
.
atwho
at
:
'!'
alias
:
'mergerequests'
search_key
:
'search'
tpl
:
@
Issues
.
template
callbacks
:
before_save
:
(
merges
)
->
$
.
map
merges
,
(
m
)
->
id
:
m
.
iid
,
title
:
sanitize
(
m
.
title
),
search
:
"
#{
m
.
iid
}
#{
m
.
title
}
"
input
.
one
"focus"
,
=>
input
.
one
"focus"
,
=>
$
.
getJSON
(
@
dataSource
).
done
(
data
)
->
$
.
getJSON
(
@
dataSource
).
done
(
data
)
->
# load members
# load members
input
.
atwho
'load'
,
"@"
,
data
.
members
input
.
atwho
'load'
,
"@"
,
data
.
members
# load issues
# load issues
input
.
atwho
'load'
,
"issues"
,
data
.
issues
input
.
atwho
'load'
,
"issues"
,
data
.
issues
# load merge requests
input
.
atwho
'load'
,
"mergerequests"
,
data
.
mergerequests
# load emojis
# load emojis
input
.
atwho
'load'
,
":"
,
data
.
emojis
input
.
atwho
'load'
,
":"
,
data
.
emojis
app/controllers/projects_controller.rb
View file @
694388df
...
@@ -108,6 +108,7 @@ class ProjectsController < ApplicationController
...
@@ -108,6 +108,7 @@ class ProjectsController < ApplicationController
@suggestions
=
{
@suggestions
=
{
emojis:
Emoji
.
names
,
emojis:
Emoji
.
names
,
issues:
@project
.
issues
.
select
([
:iid
,
:title
,
:description
]),
issues:
@project
.
issues
.
select
([
:iid
,
:title
,
:description
]),
mergerequests:
@project
.
merge_requests
.
select
([
:iid
,
:title
,
:description
]),
members:
@project
.
team
.
members
.
sort_by
(
&
:username
).
map
{
|
user
|
{
username:
user
.
username
,
name:
user
.
name
}
}
members:
@project
.
team
.
members
.
sort_by
(
&
:username
).
map
{
|
user
|
{
username:
user
.
username
,
name:
user
.
name
}
}
}
}
...
...
app/views/projects/tree/_readme.html.haml
View file @
694388df
.readme-holder
#README
.readme-holder
#README
%h4
.readme-file-title
%h4
.readme-file-title
%i
.icon-file
%i
.icon-file
=
readme
.
name
=
readme
.
name
.wiki
.wiki
-
if
gitlab_markdown?
(
readme
.
name
)
-
if
gitlab_markdown?
(
readme
.
name
)
=
preserve
do
=
preserve
do
...
...
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