Removing mini-profiler that doesn't work, formatting timelines a bit better
This commit is contained in:
parent
d23671b5fd
commit
bc0692d75b
6 changed files with 4 additions and 28 deletions
|
@ -6,11 +6,12 @@ const Status = React.createClass({
|
|||
},
|
||||
|
||||
render: function() {
|
||||
console.log(this.props.status.toJS());
|
||||
var content = { __html: this.props.status.get('content') };
|
||||
|
||||
return (
|
||||
<div style={{ height: '100px' }}>
|
||||
{this.props.status.getIn(['account', 'username'])}: {this.props.status.get('content')}
|
||||
<div style={{ padding: '5px' }}>
|
||||
<div><strong>{this.props.status.getIn(['account', 'username'])}</strong></div>
|
||||
<div dangerouslySetInnerHTML={content} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -5,13 +5,6 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
force_ssl if: "Rails.env.production? && ENV['LOCAL_HTTPS'] == 'true'"
|
||||
|
||||
# Profiling
|
||||
before_action do
|
||||
if (current_user && current_user.admin?) || Rails.env.development?
|
||||
Rack::MiniProfiler.authorize_request
|
||||
end
|
||||
end
|
||||
|
||||
helper_method :current_account
|
||||
|
||||
protected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue