Commit 81ab3ea 1 parent d91ed23 commit 81ab3ea Copy full SHA for 81ab3ea
File tree 5 files changed +19
-11
lines changed
5 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 1
- require_dependency " kebapage/application_controller"
1
+ require_dependency ' kebapage/application_controller'
2
2
3
3
module Kebapage
4
4
class MediaController < ApplicationController
5
5
6
6
def index
7
- @media = Medium . all
7
+ @media = Medium . order ( 'attachment_updated_at DESC' )
8
8
@medium = Medium . new
9
9
end
10
10
Original file line number Diff line number Diff line change 1
- require_dependency " kebapage/application_controller"
1
+ require_dependency ' kebapage/application_controller'
2
2
3
3
module Kebapage
4
4
class StaticPagesController < ApplicationController
Original file line number Diff line number Diff line change 11
11
.panel.panel-default.grid
12
12
.panel-heading
13
13
%i .icon-table.icon-large
14
- Media Manager Index Page
14
+ #{I18n.t('kebapage.media_manager')}
15
15
16
16
%table .table
17
17
%thead
18
18
%tr
19
19
%th #
20
- %th Filetype
21
- %th File size
22
- %th Upload date
20
+ %th #{I18n.t('kebapage.file_type')}
21
+ %th #{I18n.t('kebapage.file_size')}
22
+ %th #{I18n.t('kebapage.upload_date')}
23
23
%th .actions
24
- Actions
24
+ #{I18n.t('kebapage.action')}
25
25
26
26
%t .body.success
27
27
- @media.each do |media|
33
33
%td
34
34
= " #{ (media.attachment_file_size.to_i / 1024 ) } KB"
35
35
%td
36
- = media.attachment_updated_at
36
+ = media.attachment_updated_at.to_date
37
37
%td .action
38
38
%a .btn.btn-success {href: media.attachment.url }
39
39
%i .icon-zoom-in
Original file line number Diff line number Diff line change 14
14
content_placeholder : " Type yours page's content"
15
15
action : ' Action'
16
16
submit : ' Submit'
17
- cancel : ' Cancel'
17
+ cancel : ' Cancel'
18
+ media_manager : ' Media Manager'
19
+ file_type : ' File Type'
20
+ file_size : ' File Size'
21
+ upload_date : ' Upload Date'
Original file line number Diff line number Diff line change 14
14
content_placeholder : " Sayfanızın içeriği"
15
15
action : ' Eylemler'
16
16
submit : ' Gönder'
17
- cancel : ' Vazgeç'
17
+ cancel : ' Vazgeç'
18
+ media_manager : ' Ortam Yöneticisi'
19
+ file_type : ' Dosya Tipi'
20
+ file_size : ' Dosya Büyüklüğü'
21
+ upload_date : ' Yükleme Tarihi'
You can’t perform that action at this time.
0 commit comments