File tree Expand file tree Collapse file tree 4 files changed +12
-19
lines changed Expand file tree Collapse file tree 4 files changed +12
-19
lines changed Original file line number Diff line number Diff line change @@ -102,18 +102,6 @@ main .file .code pre code {
102
102
overflow-x : visible;
103
103
}
104
104
105
- main .file .code pre code span .include {
106
- white-space : pre-line;
107
- }
108
-
109
- main .file .code pre code span .include ng-include {
110
- white-space : pre;
111
- }
112
-
113
- main .file .code pre code ng-include {
114
- display : inline-block;
115
- }
116
-
117
105
footer {
118
106
padding : 2rem 0 0.5rem ;
119
107
text-align : center;
Original file line number Diff line number Diff line change 135
135
link : {
136
136
pre : function preLink ( scope , iElement , iAttrs , controller ) {
137
137
var tabs = parseInt ( iAttrs . ngIncludeTabs || 0 ) ;
138
- controller . template = controller . template . replace ( / ^ ( .* ) $ / mg, '\t' . repeat ( tabs ) + '$1' ) . replace ( / \s * $ / , '' ) ;
139
- console . log ( controller ) ;
138
+
139
+ var startRegex = new RegExp ( '\t' . repeat ( tabs - 1 ) ) ;
140
+
141
+ controller . template = controller . template
142
+ . replace ( / ^ ( .* ) $ / mg, '\t' . repeat ( tabs ) + '$1' )
143
+ . replace ( startRegex , '' )
144
+ . replace ( / \s * $ / , '' ) ;
140
145
} ,
141
146
} ,
142
147
} ;
Original file line number Diff line number Diff line change 4
4
# handle .php
5
5
location ~ \.php$ {< span ng-if ="data.file_structure === 'separated' ">
6
6
include _php_fastcgi.conf;
7
- </ span > < span class =" include " ng-if ="data.file_structure === 'unified' ">
8
- < ng-include ng-include-tabs ="{{ data.file_structure === 'unified' ? 3 : 1 }} " src ="'templates/_php_fastcgi.conf.html' " onload ="refreshHighlighting() "> </ ng-include > </ span >
7
+ </ span > < span ng-if ="data.file_structure === 'unified' ">
8
+ < ng-include ng-include-tabs ="{{ data.file_structure === 'unified' ? 3 : 1 }} " src ="'templates/_php_fastcgi.conf.html' " onload ="refreshHighlighting() "> </ ng-include > </ span >
9
9
}
Original file line number Diff line number Diff line change 20
20
include _wordpress.conf;</ span > < span ng-if ="data.php !== 'off' ">
21
21
include _php.conf;</ span >
22
22
include _letsencrypt.conf;
23
- include _ssl.conf;</ span > < span class =" include " ng-if ="data.file_structure === 'unified' ">
23
+ include _ssl.conf;</ span > < span ng-if ="data.file_structure === 'unified' ">
24
24
< ng-include ng-include-tabs ="2 " src ="'templates/_general.conf.html' " onload ="refreshHighlighting() "> </ ng-include > < span ng-if ="data.php !== 'off' && data.wordpress ">
25
25
26
26
< ng-include ng-include-tabs ="2 " src ="'templates/_wordpress.conf.html' " onload ="refreshHighlighting() "> </ ng-include > </ span > < span ng-if ="data.php !== 'off' ">
89
89
90
90
server_name {{ data.domain }} *.{{ data.domain }};
91
91
< span ng-if ="data.file_structure === 'separated' ">
92
- include _letsencrypt.conf;</ span > < span class =" include " ng-if ="data.file_structure === 'unified' ">
92
+ include _letsencrypt.conf;</ span > < span ng-if ="data.file_structure === 'unified' ">
93
93
< ng-include ng-include-tabs ="2 " src ="'templates/_letsencrypt.conf.html' " onload ="refreshHighlighting() "> </ ng-include > </ span >
94
94
95
95
return 301 https://{{ !data.non_www ? 'www.' : '' }}{{ data.domain }}$request_uri;
108
108
< span ng-if ="data.file_structure === 'separated' ">
109
109
include _general.conf;< span ng-if ="data.php !== 'off' && data.wordpress ">
110
110
include _wordpress.conf;</ span > < span ng-if ="data.php !== 'off' ">
111
- include _php.conf;</ span > </ span > < span class =" include " ng-if ="data.file_structure === 'unified' ">
111
+ include _php.conf;</ span > </ span > < span ng-if ="data.file_structure === 'unified' ">
112
112
< ng-include ng-include-tabs ="2 " src ="'templates/_general.conf.html' " onload ="refreshHighlighting() "> </ ng-include > < span ng-if ="data.php !== 'off' && data.wordpress ">
113
113
114
114
< ng-include ng-include-tabs ="2 " src ="'templates/_wordpress.conf.html' " onload ="refreshHighlighting() "> </ ng-include > </ span > < span ng-if ="data.php !== 'off' ">
You can’t perform that action at this time.
0 commit comments