Skip to content

Commit 3165ba0

Browse files
committed
view updates
1 parent f6266a9 commit 3165ba0

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

app/views/forum/editthread.blade.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1+
@extends('layouts._two_columns_left_sidebar')
2+
3+
@section('sidebar')
4+
@include('forum._sidebar')
5+
@stop
6+
7+
@section('content')
8+
<div class="row forum">
9+
<div class="small-12 columns form">
110
{{ Form::model($thread->resource) }}
211
<fieldset>
3-
<legend>Create Thread</legend>
12+
<legend>Edit Thread</legend>
413

514
<div class="row">
615
<div class="">
@@ -43,6 +52,8 @@
4352

4453
{{ Form::close() }}
4554

55+
@stop
56+
4657
@include('layouts._markdown_editor')
4758

4859
@section('scripts')

app/views/forum/thread.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,9 @@
3939

4040
@include('layouts._markdown_editor')
4141
@include('layouts._code_prettify')
42+
43+
44+
@section('scripts')
45+
@parent
46+
<script src="{{ asset('javascripts/forums.js') }}"></script>
47+
@stop

public/javascripts/forums.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,14 @@ function limitTagCheckboxes()
66
});
77
}
88

9-
limitTagCheckboxes();
9+
function moveSidebar()
10+
{
11+
$( "window" ).bind( "resize", function() {
12+
if (document.width < '800') {
13+
$('.sidebar').insertAfter('section.content');
14+
}
15+
});
16+
}
17+
18+
limitTagCheckboxes();
19+
moveSidebar();

0 commit comments

Comments
 (0)