<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,12 +10,16 @@ class DashboardController &lt; ApplicationController
     @dashboard_settings = Setting.get_dashboard_settings
     @new_messages = Logentry.get_new_messages @dashboard_settings[&quot;timespan&quot;], build_conditions_from_blacklist
     
-    if !Logentry.alert? @dashboard_settings[&quot;number_of_allowed_messages&quot;], @new_messages
-      render :text =&gt; &quot;okay&quot;
-      return
+    unless params[:simple].blank?
+      if !Logentry.alert? @dashboard_settings[&quot;number_of_allowed_messages&quot;], @new_messages
+        render :text =&gt; &quot;okay&quot;
+        return
+      end
+      
+      render :text =&gt; &quot;alert&quot;
+    else
+      render :text =&gt; @new_messages
     end
-    
-    render :text =&gt; &quot;alert&quot;
   end
 
 end</diff>
      <filename>app/controllers/dashboard_controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>98bab556351dd6771a8e5aa311deac982363a16f</id>
    </parent>
  </parents>
  <author>
    <name>Lennart Koopmann</name>
    <email>lennart@linux.jimdo.office</email>
  </author>
  <url>http://github.com/lennartkoopmann/Graylog/commit/641b986c58cbd8e979aa5e16416fb4a19647c926</url>
  <id>641b986c58cbd8e979aa5e16416fb4a19647c926</id>
  <committed-date>2009-10-08T02:41:08-07:00</committed-date>
  <authored-date>2009-10-08T02:41:08-07:00</authored-date>
  <message>Now giving back number of new messages. Simple version available via GET/POST parameter.</message>
  <tree>6e0c41843da07a507c9836b382bcedf79d420de6</tree>
  <committer>
    <name>Lennart Koopmann</name>
    <email>lennart@linux.jimdo.office</email>
  </committer>
</commit>
