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
ff84cc0b
Unverified
Commit
ff84cc0b
authored
Jun 22, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 18533-graphs-wiki-subnav
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parents
76c6b9c8
15516150
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
108 additions
and
115 deletions
+108
-115
CHANGELOG
CHANGELOG
+1
-0
Gemfile
Gemfile
+1
-1
Gemfile.lock
Gemfile.lock
+2
-2
application.js.coffee
app/assets/javascripts/application.js.coffee
+19
-14
stat_graph_contributors_graph.js.coffee
...avascripts/graphs/stat_graph_contributors_graph.js.coffee
+5
-1
blocks.scss
app/assets/stylesheets/framework/blocks.scss
+5
-0
dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+6
-4
sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+0
-1
labels.scss
app/assets/stylesheets/pages/labels.scss
+2
-2
stat_graph.scss
app/assets/stylesheets/pages/stat_graph.scss
+5
-0
appearances_controller.rb
app/controllers/admin/appearances_controller.rb
+1
-0
gitlab_markdown_helper.rb
app/helpers/gitlab_markdown_helper.rb
+0
-2
_form.html.haml
app/views/admin/appearances/_form.html.haml
+1
-1
preview.html.haml
app/views/admin/appearances/preview.html.haml
+7
-27
_project.html.haml
app/views/layouts/nav/_project.html.haml
+2
-2
index.html.haml
app/views/projects/compare/index.html.haml
+1
-1
show.html.haml
app/views/projects/compare/show.html.haml
+18
-18
index.html.haml
app/views/projects/forks/index.html.haml
+0
-6
show.html.haml
app/views/projects/show.html.haml
+1
-1
_list.html.haml
app/views/shared/projects/_list.html.haml
+6
-0
README.md
doc/api/README.md
+1
-0
active_tab.feature
features/project/active_tab.feature
+15
-15
shortcuts.feature
features/project/shortcuts.feature
+3
-3
project_find_file.rb
features/steps/project/project_find_file.rb
+2
-2
project_tab.rb
features/steps/shared/project_tab.rb
+2
-2
banzai.rb
lib/banzai.rb
+0
-4
renderer.rb
lib/banzai/renderer.rb
+2
-6
No files found.
CHANGELOG
View file @
ff84cc0b
...
...
@@ -16,6 +16,7 @@ v 8.9.0 (unreleased)
- Fix issue with arrow keys not working in search autocomplete dropdown
- Fix an issue where note polling stopped working if a window was in the
background during a refresh.
- Pre-processing Markdown now only happens when needed
- Make EmailsOnPushWorker use Sidekiq mailers queue
- Redesign all Devise emails. !4297
- Don't show 'Leave Project' to group members
...
...
Gemfile
View file @
ff84cc0b
...
...
@@ -48,7 +48,7 @@ gem 'attr_encrypted', '~> 3.0.0'
gem
'
u2f
'
,
'~> 0.2.1'
# Browser detection
gem
"
browser
"
,
'~> 2.
0.3
'
gem
"
browser
"
,
'~> 2.
2
'
# Extracting information from a git repository
# Provide access to Gitlab::Git library
...
...
Gemfile.lock
View file @
ff84cc0b
...
...
@@ -98,7 +98,7 @@ GEM
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
brakeman (3.3.2)
browser (2.
0.3
)
browser (2.
2.0
)
builder (3.2.2)
bullet (5.0.0)
activesupport (>= 3.0.0)
...
...
@@ -833,7 +833,7 @@ DEPENDENCIES
binding_of_caller (~> 0.7.2)
bootstrap-sass (~> 3.3.0)
brakeman (~> 3.3.0)
browser (~> 2.
0.3
)
browser (~> 2.
2
)
bullet
bundler-audit
byebug
...
...
app/assets/javascripts/application.js.coffee
View file @
ff84cc0b
...
...
@@ -121,6 +121,11 @@ window.onload = ->
setTimeout
shiftWindow
,
100
$
->
$document
=
$
(
document
)
$window
=
$
(
window
)
$body
=
$
(
'body'
)
gl
.
utils
.
preventDisabledButtons
()
bootstrapBreakpoint
=
bp
.
getBreakpointSize
()
...
...
@@ -152,7 +157,7 @@ $ ->
),
1
# Initialize tooltips
$
(
'body'
)
.
tooltip
(
$
body
.
tooltip
(
selector
:
'.has-tooltip, [data-toggle="tooltip"]'
placement
:
(
_
,
el
)
->
$el
=
$
(
el
)
...
...
@@ -171,7 +176,7 @@ $ ->
flash
.
show
()
# Disable form buttons while a form is submitting
$
(
'body'
)
.
on
'ajax:complete, ajax:beforeSend, submit'
,
'form'
,
(
e
)
->
$
body
.
on
'ajax:complete, ajax:beforeSend, submit'
,
'form'
,
(
e
)
->
buttons
=
$
(
'[type="submit"]'
,
@
)
switch
e
.
type
...
...
@@ -184,7 +189,7 @@ $ ->
$
(
'.account-box'
).
hover
->
$
(
@
).
toggleClass
(
'hover'
)
# Commit show suppressed diff
$
(
document
)
.
on
'click'
,
'.diff-content .js-show-suppressed-diff'
,
->
$
document
.
on
'click'
,
'.diff-content .js-show-suppressed-diff'
,
->
$container
=
$
(
@
).
parent
()
$container
.
next
(
'table'
).
show
()
$container
.
remove
()
...
...
@@ -197,13 +202,13 @@ $ ->
$
(
'.navbar-toggle i'
).
toggleClass
(
"fa-angle-right fa-angle-left"
)
# Show/hide comments on diff
$
(
"body"
)
.
on
"click"
,
".js-toggle-diff-comments"
,
(
e
)
->
$
body
.
on
"click"
,
".js-toggle-diff-comments"
,
(
e
)
->
$
(
@
).
toggleClass
(
'active'
)
$
(
@
).
closest
(
".diff-file"
).
find
(
".notes_holder"
).
toggle
()
e
.
preventDefault
()
$
(
document
)
.
off
"click"
,
'.js-confirm-danger'
$
(
document
)
.
on
"click"
,
'.js-confirm-danger'
,
(
e
)
->
$
document
.
off
"click"
,
'.js-confirm-danger'
$
document
.
on
"click"
,
'.js-confirm-danger'
,
(
e
)
->
e
.
preventDefault
()
btn
=
$
(
e
.
target
)
text
=
btn
.
data
(
"confirm-danger-message"
)
...
...
@@ -211,7 +216,7 @@ $ ->
new
ConfirmDangerModal
(
form
,
text
)
$
(
document
)
.
on
'click'
,
'button'
,
->
$
document
.
on
'click'
,
'button'
,
->
$
(
this
).
blur
()
$
(
'input[type="search"]'
).
each
->
...
...
@@ -219,7 +224,7 @@ $ ->
$this
.
attr
'value'
,
$this
.
val
()
return
$
(
document
)
$
document
.
off
'keyup'
,
'input[type="search"]'
.
on
'keyup'
,
'input[type="search"]'
,
(
e
)
->
$this
=
$
(
this
)
...
...
@@ -227,7 +232,7 @@ $ ->
$sidebarGutterToggle
=
$
(
'.js-sidebar-toggle'
)
$
(
document
)
$
document
.
off
'breakpoint:change'
.
on
'breakpoint:change'
,
(
e
,
breakpoint
)
->
if
breakpoint
is
'sm'
or
breakpoint
is
'xs'
...
...
@@ -239,14 +244,14 @@ $ ->
oldBootstrapBreakpoint
=
bootstrapBreakpoint
bootstrapBreakpoint
=
bp
.
getBreakpointSize
()
if
bootstrapBreakpoint
!=
oldBootstrapBreakpoint
$
(
document
)
.
trigger
(
'breakpoint:change'
,
[
bootstrapBreakpoint
])
$
document
.
trigger
(
'breakpoint:change'
,
[
bootstrapBreakpoint
])
checkInitialSidebarSize
=
->
bootstrapBreakpoint
=
bp
.
getBreakpointSize
()
if
bootstrapBreakpoint
is
"xs"
or
"sm"
$
(
document
)
.
trigger
(
'breakpoint:change'
,
[
bootstrapBreakpoint
])
$
document
.
trigger
(
'breakpoint:change'
,
[
bootstrapBreakpoint
])
$
(
window
)
$
window
.
off
"resize.app"
.
on
"resize.app"
,
(
e
)
->
fitSidebarForSize
()
...
...
@@ -256,14 +261,14 @@ $ ->
new
Aside
()
# Sidenav pinning
if
$
(
window
)
.
width
()
<
1440
and
$
.
cookie
(
'pin_nav'
)
is
'true'
if
$
window
.
width
()
<
1440
and
$
.
cookie
(
'pin_nav'
)
is
'true'
$
.
cookie
(
'pin_nav'
,
'false'
,
{
path
:
'/'
})
$
(
'.page-with-sidebar'
)
.
toggleClass
(
'page-sidebar-collapsed page-sidebar-expanded'
)
.
removeClass
(
'page-sidebar-pinned'
)
$
(
'.navbar-fixed-top'
).
removeClass
(
'header-pinned-nav'
)
$
(
document
)
$
document
.
off
'click'
,
'.js-nav-pin'
.
on
'click'
,
'.js-nav-pin'
,
(
e
)
->
e
.
preventDefault
()
...
...
app/assets/javascripts/graphs/stat_graph_contributors_graph.js.coffee
View file @
ff84cc0b
...
...
@@ -121,7 +121,11 @@ class @ContributorsMasterGraph extends ContributorsGraph
class
@
ContributorsAuthorGraph
extends
ContributorsGraph
constructor
:
(
@
data
)
->
@
width
=
$
(
'.content'
).
width
()
/
2
-
100
# Don't split graph size in half for mobile devices.
if
$
(
window
).
width
()
<
768
@
width
=
$
(
'.content'
).
width
()
-
80
else
@
width
=
(
$
(
'.content'
).
width
()
/
2
)
-
100
@
height
=
200
@
x
=
null
@
y
=
null
...
...
app/assets/stylesheets/framework/blocks.scss
View file @
ff84cc0b
...
...
@@ -106,6 +106,11 @@
.oneline
{
line-height
:
35px
;
}
&
.no-bottom-space
{
border-bottom
:
0
;
margin-bottom
:
0
;
}
}
.cover-block
{
...
...
app/assets/stylesheets/framework/dropdowns.scss
View file @
ff84cc0b
...
...
@@ -461,10 +461,12 @@
}
}
.ui-state-active
,
.ui-state-hover
{
color
:
$md-link-color
;
background-color
:
$calendar-hover-bg
;
.ui-datepicker-calendar
{
.ui-state-hover
,
.ui-state-active
{
color
:
#fff
;
border
:
0
;
}
}
.ui-datepicker-prev
,
...
...
app/assets/stylesheets/framework/sidebar.scss
View file @
ff84cc0b
...
...
@@ -91,7 +91,6 @@
text-decoration
:
none
;
font-weight
:
normal
;
outline
:
none
;
white-space
:
nowrap
;
&
:hover
,
&
:active
,
...
...
app/assets/stylesheets/pages/labels.scss
View file @
ff84cc0b
...
...
@@ -50,11 +50,10 @@
.label-row
{
.label-name
{
display
:
block
;
display
:
inline-
block
;
margin-bottom
:
10px
;
@media
(
min-width
:
$screen-sm-min
)
{
display
:
inline-block
;
width
:
200px
;
margin-bottom
:
0
;
}
...
...
@@ -63,6 +62,7 @@
.label-description
{
display
:
block
;
margin-bottom
:
10px
;
margin-left
:
50px
;
@media
(
min-width
:
$screen-sm-min
)
{
display
:
inline-block
;
...
...
app/assets/stylesheets/pages/stat_graph.scss
View file @
ff84cc0b
...
...
@@ -36,11 +36,16 @@
.person
{
@include
make-md-column
(
6
);
margin-top
:
10px
;
@media
(
max-width
:
$screen-sm-min
)
{
width
:
100%
;
}
}
.person
.spark
{
display
:
block
;
background
:
#f3f3f3
;
width
:
100%
;
}
.person
.area-contributor
{
...
...
app/controllers/admin/appearances_controller.rb
View file @
ff84cc0b
...
...
@@ -5,6 +5,7 @@ class Admin::AppearancesController < Admin::ApplicationController
end
def
preview
render
'preview'
,
layout:
'devise'
end
def
create
...
...
app/helpers/gitlab_markdown_helper.rb
View file @
ff84cc0b
...
...
@@ -50,8 +50,6 @@ module GitlabMarkdownHelper
context
[
:project
]
||=
@project
text
=
Banzai
.
pre_process
(
text
,
context
)
html
=
Banzai
.
render
(
text
,
context
)
context
.
merge!
(
...
...
app/views/admin/appearances/_form.html.haml
View file @
ff84cc0b
...
...
@@ -46,7 +46,7 @@
Maximum file size is 1MB. Pages are optimized for a 72x72 px header logo
.form-actions
=
f
.
submit
'Save'
,
class:
'btn btn-save'
=
f
.
submit
'Save'
,
class:
'btn btn-save
append-right-10
'
-
if
@appearance
.
persisted?
=
link_to
'Preview last save'
,
preview_admin_appearances_path
,
class:
'btn'
,
target:
'_blank'
...
...
app/views/admin/appearances/preview.html.haml
View file @
ff84cc0b
-
page_title
"Preview | Appearance"
%h3
.page-title
Appearance settings - Preview
%hr
.login-box
.login-heading
%h3
Existing user? Sign in
%form
=
text_field_tag
:login
,
nil
,
class:
"form-control top"
,
placeholder:
"Username or Email"
=
password_field_tag
:password
,
nil
,
class:
"form-control bottom"
,
placeholder:
"Password"
=
button_tag
"Sign in"
,
class:
"btn-create btn"
.ui-box
.title
Sign-in page
%div
.login-page
.container
.content
.login-title
%h1
=
brand_title
%hr
.container
.content
.row
.col-sm-7
.brand-image
=
brand_image
.brand_text
=
brand_text
.col-sm-4
.login-box
%h3
.page-title
Sign in
=
text_field_tag
:login
,
nil
,
class:
"form-control top"
,
placeholder:
"Username or Email"
=
password_field_tag
:password
,
nil
,
class:
"form-control bottom"
,
placeholder:
"Password"
=
button_tag
"Sign in"
,
class:
"btn-create btn"
app/views/layouts/nav/_project.html.haml
View file @
ff84cc0b
...
...
@@ -39,9 +39,9 @@
-
if
project_nav_tab?
:files
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file commit commits compare repositories tags branches releases network)
)
do
=
link_to
project_files_path
(
@project
),
title:
'
Code
'
,
class:
'shortcuts-tree'
do
=
link_to
project_files_path
(
@project
),
title:
'
Repository
'
,
class:
'shortcuts-tree'
do
%span
Code
Repository
-
if
project_nav_tab?
:pipelines
=
nav_link
(
controller:
[
:pipelines
,
:builds
,
:environments
])
do
...
...
app/views/projects/compare/index.html.haml
View file @
ff84cc0b
...
...
@@ -3,7 +3,7 @@
=
render
"projects/commits/head"
%div
{
class:
(
container_class
)
}
.
row-content-block.second-block.content-component
-block
.
sub-header
-block
Compare branches, tags or commit ranges.
%br
Fill input field with commit id like
...
...
app/views/projects/compare/show.html.haml
View file @
ff84cc0b
-
@no_container
=
true
-
page_title
"
#{
params
[
:from
]
}
...
#{
params
[
:to
]
}
"
=
render
"projects/commits/head"
%div
{
class:
(
container_class
)
}
.sub-header-block.no-bottom-space
=
render
"form"
.row-content-block
=
render
"form"
-
if
@commits
.
present?
.prepend-top-default
-
if
@commits
.
present?
=
render
"projects/commits/commit_list"
=
render
"projects/diffs/diffs"
,
diffs:
@diffs
,
project:
@project
,
diff_refs:
@diff_refs
-
else
.light-well.prepend-top-default
.center
%h4
There isn't anything to compare.
%p
.slead
-
if
params
[
:to
]
==
params
[
:from
]
%span
.label-branch
#{
params
[
:from
]
}
and
%span
.label-branch
#{
params
[
:to
]
}
are the same.
-
else
You'll need to use different branch names to get a valid comparison.
-
else
.light-well
.center
%h4
There isn't anything to compare.
%p
.slead
-
if
params
[
:to
]
==
params
[
:from
]
%span
.label-branch
#{
params
[
:from
]
}
and
%span
.label-branch
#{
params
[
:to
]
}
are the same.
-
else
You'll need to use different branch names to get a valid comparison.
app/views/projects/forks/index.html.haml
View file @
ff84cc0b
...
...
@@ -40,9 +40,3 @@
=
render
'projects'
,
projects:
@forks
-
if
@private_forks_count
>
0
.private-forks-notice
=
icon
(
'lock fw'
,
base:
'circle'
,
class:
'fa-lg private-fork-icon'
)
%strong
=
pluralize
(
@private_forks_count
,
'private fork'
)
%span
you have no access to.
app/views/projects/show.html.haml
View file @
ff84cc0b
...
...
@@ -60,7 +60,7 @@
-
unless
@repository
.
gitlab_ci_yml
%li
.missing
=
link_to
add_special_file_path
(
@project
,
file_name:
'.gitlab-ci.yml'
)
do
Set
u
p CI
Set
U
p CI
-
if
@repository
.
commit
.content-block.second-block.white
...
...
app/views/shared/projects/_list.html.haml
View file @
ff84cc0b
...
...
@@ -16,6 +16,12 @@
=
render
"shared/projects/project"
,
project:
project
,
skip_namespace:
skip_namespace
,
avatar:
avatar
,
stars:
stars
,
css_class:
css_class
,
ci:
ci
,
use_creator_avatar:
use_creator_avatar
,
forks:
forks
,
show_last_commit_as_description:
show_last_commit_as_description
-
if
@private_forks_count
&&
@private_forks_count
>
0
%li
.project-row.private-forks-notice
=
icon
(
'lock fw'
,
base:
'circle'
,
class:
'fa-lg private-fork-icon'
)
%strong
=
pluralize
(
@private_forks_count
,
'private fork'
)
%span
you have no access to.
=
paginate
(
projects
,
remote:
remote
,
theme:
"gitlab"
)
if
projects
.
respond_to?
:total_pages
-
else
.nothing-here-block
No projects found
...
...
doc/api/README.md
View file @
ff84cc0b
...
...
@@ -32,6 +32,7 @@ following locations:
-
[
Services
](
services.md
)
-
[
Session
](
session.md
)
-
[
Settings
](
settings.md
)
-
[
Sidekiq metrics
](
sidekiq_metrics.md
)
-
[
System Hooks
](
system_hooks.md
)
-
[
Tags
](
tags.md
)
-
[
Users
](
users.md
)
...
...
features/project/active_tab.feature
View file @
ff84cc0b
...
...
@@ -10,9 +10,9 @@ Feature: Project Active Tab
Then
the active main tab should be Home
And
no other main tabs should be active
Scenario
:
On Project
Code
Scenario
:
On Project
Repository
Given
I visit my project's files page
Then
the active main tab should be
Code
Then
the active main tab should be
Repository
And
no other main tabs should be active
Scenario
:
On Project Issues
...
...
@@ -59,46 +59,46 @@ Feature: Project Active Tab
And
no other sub navs should be active
And
the active main tab should be Settings
# Sub Tabs:
Code
# Sub Tabs:
Repository
Scenario
:
On Project
Code
/Files
Scenario
:
On Project
Repository
/Files
Given
I visit my project's files page
Then
the active sub tab should be Files
And
no other sub tabs should be active
And
the active main tab should be
Code
And
the active main tab should be
Repository
Scenario
:
On Project
Code
/Commits
Scenario
:
On Project
Repository
/Commits
Given
I visit my project's commits page
Then
the active sub tab should be Commits
And
no other sub tabs should be active
And
the active main tab should be
Code
And
the active main tab should be
Repository
Scenario
:
On Project
Code
/Network
Scenario
:
On Project
Repository
/Network
Given
I visit my project's network page
Then
the active sub tab should be Network
And
no other sub tabs should be active
And
the active main tab should be
Code
And
the active main tab should be
Repository
Scenario
:
On Project
Code
/Compare
Scenario
:
On Project
Repository
/Compare
Given
I visit my project's commits page
And
I click the
"Compare"
tab
Then
the active sub tab should be Compare
And
no other sub tabs should be active
And
the active main tab should be
Code
And
the active main tab should be
Repository
Scenario
:
On Project
Code
/Branches
Scenario
:
On Project
Repository
/Branches
Given
I visit my project's commits page
And
I click the
"Branches"
tab
Then
the active sub tab should be Branches
And
no other sub tabs should be active
And
the active main tab should be
Code
And
the active main tab should be
Repository
Scenario
:
On Project
Code
/Tags
Scenario
:
On Project
Repository
/Tags
Given
I visit my project's commits page
And
I click the
"Tags"
tab
Then
the active sub tab should be Tags
And
no other sub tabs should be active
And
the active main tab should be
Code
And
the active main tab should be
Repository
Scenario
:
On Project Issues/Browse
Given
I visit my project's issues page
...
...
features/project/shortcuts.feature
View file @
ff84cc0b
...
...
@@ -8,21 +8,21 @@ Feature: Project Shortcuts
@javascript
Scenario
:
Navigate to files tab
Given
I press
"g"
and
"f"
Then
the active main tab should be
Code
Then
the active main tab should be
Repository
Then
the active sub tab should be Files
@javascript
Scenario
:
Navigate to commits tab
Given
I visit my project's files page
Given
I press
"g"
and
"c"
Then
the active main tab should be
Code
Then
the active main tab should be
Repository
Then
the active sub tab should be Commits
@javascript
Scenario
:
Navigate to network tab
Given
I press
"g"
and
"n"
Then
the active sub tab should be Network
And
the active main tab should be
Code
And
the active main tab should be
Repository
@javascript
Scenario
:
Navigate to graphs tab
...
...
features/steps/project/project_find_file.rb
View file @
ff84cc0b
...
...
@@ -13,12 +13,12 @@ class Spinach::Features::ProjectFindFile < Spinach::FeatureSteps
end
step
'I should see "find file" page'
do
ensure_active_main_tab
(
'
Code
'
)
ensure_active_main_tab
(
'
Repository
'
)
expect
(
page
).
to
have_selector
(
'.file-finder-holder'
,
count:
1
)
end
step
'I fill in Find by path with "git"'
do
ensure_active_main_tab
(
'
Code
'
)
ensure_active_main_tab
(
'
Repository
'
)
expect
(
page
).
to
have_selector
(
'.file-finder-holder'
,
count:
1
)
end
...
...
features/steps/shared/project_tab.rb
View file @
ff84cc0b
...
...
@@ -8,8 +8,8 @@ module SharedProjectTab
ensure_active_main_tab
(
'Project'
)
end
step
'the active main tab should be
Code
'
do
ensure_active_main_tab
(
'
Code
'
)
step
'the active main tab should be
Repository
'
do
ensure_active_main_tab
(
'
Repository
'
)
end
step
'the active main tab should be Graphs'
do
...
...
lib/banzai.rb
View file @
ff84cc0b
...
...
@@ -7,10 +7,6 @@ module Banzai
Renderer
.
render_result
(
text
,
context
)
end
def
self
.
pre_process
(
text
,
context
)
Renderer
.
pre_process
(
text
,
context
)
end
def
self
.
post_process
(
html
,
context
)
Renderer
.
post_process
(
html
,
context
)
end
...
...
lib/banzai/renderer.rb
View file @
ff84cc0b
...
...
@@ -30,13 +30,9 @@ module Banzai
end
def
self
.
render_result
(
text
,
context
=
{})
Pipeline
[
context
[
:pipeline
]].
call
(
text
,
context
)
end
text
=
Pipeline
[
:pre_process
].
to_html
(
text
,
context
)
if
text
def
self
.
pre_process
(
text
,
context
)
pipeline
=
Pipeline
[
:pre_process
]
pipeline
.
to_html
(
text
,
context
)
Pipeline
[
context
[
:pipeline
]].
call
(
text
,
context
)
end
# Perform post-processing on an HTML String
...
...
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