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
2a13eb52
Commit
2a13eb52
authored
Nov 26, 2021
by
Kun Qian
Committed by
Francisco Javier López
Nov 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add blocked content entry
parent
d0001477
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
4 deletions
+11
-4
app/assets/javascripts/diffs/components/diff_file.vue
app/assets/javascripts/diffs/components/diff_file.vue
+1
-1
app/views/projects/blob/_content.html.haml
app/views/projects/blob/_content.html.haml
+1
-0
app/views/projects/blob/_header.html.haml
app/views/projects/blob/_header.html.haml
+1
-0
app/views/projects/diffs/_content.html.haml
app/views/projects/diffs/_content.html.haml
+1
-0
app/views/shared/wikis/_wiki_content.html.haml
app/views/shared/wikis/_wiki_content.html.haml
+2
-0
app/views/shared/wikis/show.html.haml
app/views/shared/wikis/show.html.haml
+1
-2
qa/qa/page/component/wiki.rb
qa/qa/page/component/wiki.rb
+4
-1
No files found.
app/assets/javascripts/diffs/components/diff_file.vue
View file @
2a13eb52
...
@@ -10,6 +10,7 @@ import {
...
@@ -10,6 +10,7 @@ import {
import
{
escape
}
from
'
lodash
'
;
import
{
escape
}
from
'
lodash
'
;
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
{
IdState
}
from
'
vendor/vue-virtual-scroller
'
;
import
{
IdState
}
from
'
vendor/vue-virtual-scroller
'
;
import
DiffContent
from
'
jh_else_ce/diffs/components/diff_content.vue
'
;
import
createFlash
from
'
~/flash
'
;
import
createFlash
from
'
~/flash
'
;
import
{
hasDiff
}
from
'
~/helpers/diffs_helper
'
;
import
{
hasDiff
}
from
'
~/helpers/diffs_helper
'
;
import
{
diffViewerErrors
}
from
'
~/ide/constants
'
;
import
{
diffViewerErrors
}
from
'
~/ide/constants
'
;
...
@@ -28,7 +29,6 @@ import {
...
@@ -28,7 +29,6 @@ import {
import
eventHub
from
'
../event_hub
'
;
import
eventHub
from
'
../event_hub
'
;
import
{
DIFF_FILE
,
GENERIC_ERROR
,
CONFLICT_TEXT
}
from
'
../i18n
'
;
import
{
DIFF_FILE
,
GENERIC_ERROR
,
CONFLICT_TEXT
}
from
'
../i18n
'
;
import
{
collapsedType
,
getShortShaFromFile
}
from
'
../utils/diff_file
'
;
import
{
collapsedType
,
getShortShaFromFile
}
from
'
../utils/diff_file
'
;
import
DiffContent
from
'
./diff_content.vue
'
;
import
DiffFileHeader
from
'
./diff_file_header.vue
'
;
import
DiffFileHeader
from
'
./diff_file_header.vue
'
;
export
default
{
export
default
{
...
...
app/views/projects/blob/_content.html.haml
View file @
2a13eb52
-
blob
=
local_assigns
.
fetch
(
:blob
,
nil
)
-
simple_viewer
=
blob
.
simple_viewer
-
simple_viewer
=
blob
.
simple_viewer
-
rich_viewer
=
blob
.
rich_viewer
-
rich_viewer
=
blob
.
rich_viewer
-
rich_viewer_active
=
rich_viewer
&&
params
[
:viewer
]
!=
'simple'
-
rich_viewer_active
=
rich_viewer
&&
params
[
:viewer
]
!=
'simple'
...
...
app/views/projects/blob/_header.html.haml
View file @
2a13eb52
-
blame
=
local_assigns
.
fetch
(
:blame
,
false
)
-
blame
=
local_assigns
.
fetch
(
:blame
,
false
)
-
blob
=
local_assigns
.
fetch
(
:blob
,
nil
)
.js-file-title.file-title-flex-parent
.js-file-title.file-title-flex-parent
=
render
'projects/blob/header_content'
,
blob:
blob
=
render
'projects/blob/header_content'
,
blob:
blob
...
...
app/views/projects/diffs/_content.html.haml
View file @
2a13eb52
-
diff_file
=
local_assigns
.
fetch
(
:diff_file
,
nil
)
.diff-content
.diff-content
=
render
'projects/diffs/viewer'
,
viewer:
diff_file
.
viewer
=
render
'projects/diffs/viewer'
,
viewer:
diff_file
.
viewer
app/views/shared/wikis/_wiki_content.html.haml
0 → 100644
View file @
2a13eb52
.js-wiki-page-content.md.gl-pt-2
{
data:
{
qa_selector:
'wiki_page_content'
,
testid:
'wiki_page_content'
,
tracking_context:
wiki_page_tracking_context
(
@page
).
to_json
}
}
=
render_wiki_content
(
@page
)
app/views/shared/wikis/show.html.haml
View file @
2a13eb52
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
%div
%div
-
if
can?
(
current_user
,
:create_wiki
,
@wiki
.
container
)
&&
@page
.
latest?
&&
@valid_encoding
-
if
can?
(
current_user
,
:create_wiki
,
@wiki
.
container
)
&&
@page
.
latest?
&&
@valid_encoding
=
link_to
sprite_icon
(
'pencil'
,
css_class:
'gl-icon'
),
wiki_page_path
(
@wiki
,
@page
,
action: :edit
),
title:
'Edit'
,
role:
"button"
,
class:
'btn gl-button btn-icon btn-default js-wiki-edit'
,
data:
{
qa_selector:
'edit_page_button'
,
testid:
'wiki_edit_button'
}
=
link_to
sprite_icon
(
'pencil'
,
css_class:
'gl-icon'
),
wiki_page_path
(
@wiki
,
@page
,
action: :edit
),
title:
'Edit'
,
role:
"button"
,
class:
'btn gl-button btn-icon btn-default js-wiki-edit'
,
data:
{
qa_selector:
'edit_page_button'
,
testid:
'wiki_edit_button'
}
.js-wiki-page-content.md.gl-pt-2
{
data:
{
qa_selector:
'wiki_page_content'
,
testid:
'wiki_page_content'
,
tracking_context:
wiki_page_tracking_context
(
@page
).
to_json
}
}
=
render
'shared/wikis/wiki_content'
=
render_wiki_content
(
@page
)
=
render
'shared/wikis/sidebar'
=
render
'shared/wikis/sidebar'
qa/qa/page/component/wiki.rb
View file @
2a13eb52
...
@@ -11,10 +11,13 @@ module QA
...
@@ -11,10 +11,13 @@ module QA
base
.
view
'app/views/shared/wikis/show.html.haml'
do
base
.
view
'app/views/shared/wikis/show.html.haml'
do
element
:wiki_page_title
element
:wiki_page_title
element
:wiki_page_content
element
:edit_page_button
element
:edit_page_button
end
end
base
.
view
'app/views/shared/wikis/_wiki_content.html.haml'
do
element
:wiki_page_content
end
base
.
view
'app/views/shared/wikis/_main_links.html.haml'
do
base
.
view
'app/views/shared/wikis/_main_links.html.haml'
do
element
:new_page_button
element
:new_page_button
element
:page_history_button
element
:page_history_button
...
...
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