File tree 3 files changed +32
-6
lines changed 3 files changed +32
-6
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,23 @@ tr.paginationFooter td ul.pagination {
82
82
padding-left : 0px ;
83
83
}
84
84
85
+ # error-with-details h3 {
86
+ margin : 0 ;
87
+ padding-top : 7px ;
88
+ padding-bottom : 15px ;
89
+ }
90
+
91
+ .ethplorer-panel {
92
+ display : inline-block;
93
+ background : # 1c1c1c ;
94
+ color : # dedede ;
95
+ border-radius : 5px ;
96
+ padding : 15px ;
97
+ font-size : 16px ;
98
+ }
99
+
85
100
# error-info {
86
- padding-top : 5px ;
87
- color : # eee ;
101
+ margin : 0 auto;
88
102
}
89
103
90
104
.navbar-inverse {
Original file line number Diff line number Diff line change 18
18
require dirname (__FILE__ ) . '/service/lib/ethplorer.php ' ;
19
19
$ es = Ethplorer::db (array ());
20
20
21
- $ codeVersion = isset ($ aConfig ['codeVersion ' ]) ? $ aConfig ['codeVersion ' ] : "212 " ;
21
+ $ codeVersion = isset ($ aConfig ['codeVersion ' ]) ? $ aConfig ['codeVersion ' ] : "213 " ;
22
22
23
23
$ error = TRUE ;
24
24
$ header = "" ;
215
215
<div id="error" class="content-page text-center">
216
216
<h1 class="text-danger"></h1>
217
217
<h3 id="error-reason" class="text-danger"></h3>
218
- <p id="error-info"></p>
218
+ </div>
219
+
220
+ <div id="error-with-details" class="content-page text-center">
221
+ <div class="ethplorer-panel">
222
+ <h3 class="text-danger error-title"></h3>
223
+ <div class="error-details"></div>
224
+ </div>
219
225
</div>
220
226
221
227
<div>
Original file line number Diff line number Diff line change @@ -279,9 +279,15 @@ Ethplorer = {
279
279
error : function ( message , addationalInfo = '' ) {
280
280
Ethplorer . hideLoader ( ) ;
281
281
$ ( '.content-page' ) . hide ( ) ;
282
- $ ( '#error-reason' ) . text ( message ) ;
283
282
if ( addationalInfo . length ) {
284
- $ ( '#error-info' ) . html ( addationalInfo ) ;
283
+ $ ( '#error-with-details' ) . show ( ) ;
284
+ $ ( '#error' ) . hide ( ) ;
285
+ $ ( '#error-with-details .error-title' ) . text ( message ) ;
286
+ $ ( '#error-with-details .error-details' ) . html ( addationalInfo ) ;
287
+ } else {
288
+ $ ( '#error' ) . show ( ) ;
289
+ $ ( '#error-with-details' ) . hide ( ) ;
290
+ $ ( '#error-reason' ) . text ( message ) ;
285
291
}
286
292
$ ( '#error' ) . show ( ) ;
287
293
$ ( '#ethplorer-path' ) . hide ( ) ;
You can’t perform that action at this time.
0 commit comments