Ett fel inträffade. Försök lite senare.
diff --git a/.gitignore b/.gitignore
index 54cb8bb..6c01beb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,16 +1,8 @@
-*.rbc
-*.sassc
-.sass-cache
-capybara-*.html
-.rspec
-/.bundle
-/vendor/bundle
-/log/*
-/tmp/*
-/db/*.sqlite3
-/public/system/*
-/coverage/
-/spec/tmp/*
-**.orig
-rerun.txt
-pickle-email-*.html
\ No newline at end of file
+.DS_Store
+config/deploy.yml
+config/database.yml
+config/app_config.yml
+config/initializers/secret_token.rb
+log
+tmp
+doc
diff --git a/.rspec b/.rspec
new file mode 100644
index 0000000..4e1e0d2
--- /dev/null
+++ b/.rspec
@@ -0,0 +1 @@
+--color
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..bc08fe2
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,619 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
" + item.first_name + " " + item.last_name +
+ "
(" + item.username + ")
Ett fel inträffade. Försök lite senare.
" + item.first_name + " " + item.last_name +
+ "
(" + item.username + ")
Ett fel inträffade. Försök lite senare.' + textStatus + " | " + errorThrown + '
'); + $('#my-status .status').text(oldStatus); // Revert to old status + }, + dataType: "json" + }); + }); + } +}); + + + // Minor small device adjustments + if ( $(window).width() <= 480 ) { + // Temporarily disable zoom on text field focus + $('input') + .focus( function() { + $("meta[name=viewport]").attr("content", viewportContent + ', maximum-scale=1'); + }) + .blur( function() { + $("meta[name=viewport]").attr("content", viewportContent + ', maximum-scale=10'); + } + ); + } diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss new file mode 100644 index 0000000..7b06173 --- /dev/null +++ b/app/assets/stylesheets/application.css.scss @@ -0,0 +1,7 @@ +/* Sass imports merges in to malmo.css */ +@import 'variables', 'mixins', 'functions', + 'grid', + 'feeds', 'colleagues_status', 'shortcuts', 'search_person', 'site_search', 'login', + 'edit', + 'media_queries', + 'print'; diff --git a/app/assets/stylesheets/colleagues_status.css.scss b/app/assets/stylesheets/colleagues_status.css.scss new file mode 100644 index 0000000..02b0cd2 --- /dev/null +++ b/app/assets/stylesheets/colleagues_status.css.scss @@ -0,0 +1,177 @@ +section.box#colleagues { + h1 { + margin-bottom: 0; + } + ul.box-content { + margin: 0; + li { + position: relative; + clear: both; + margin: .2em .6em 1em; + img { + float: left; + width: 46px; + height: 46px; + margin: .2em .6em 1em 0; + border: none; + } + .text { + overflow: hidden; + h2.name { + font-size: emize(13); + font-weight: normal; + line-height: emize(16, 13); + margin: 0; + } + p.status { + font-size: emize(13); + line-height: emize(16, 13); + margin-bottom: 0; + &.success { + padding: .1em .3em; + margin-bottom: .2em; + @include box-sizing(border-box); + } + } + p.updated_at { + font-family: $sansSerif; + font-size: emize(11); + color: $textColorDark; + line-height: emize(13, 11); + margin-bottom: 0; + } + } + a.delete { + position: absolute; + top: 0; + right: 0; + margin: 0; + font-family: $sansSerif; + font-size: emize(13); + color: $menuColor; + span { + font-size: emize(13); + @include opacity(.2); + } + } + &:hover a.delete { + color: $dangerColor; + span { + @include opacity(1); + } + } + &.add { + margin-top: .7em; + .help { + margin-bottom: .4em; + } + } + &.waiting { + height: 4em; + background-color: white; + background-position: left 40%; + } + .warning { + padding: .5em .8em; + font-family: $sansSerif; + } + } + li#my-status { + position: relative; + .change-image { + position: absolute; + top: 0em; + left: 0; + @include box-sizing(border-box); + display: none; + @include opacity(1); + padding: .2em .2em .3em; + width: 46px; + text-align: center; + font-size: emize(11); + font-family: $sansSerif; + background: $backgroundDarker; + color: white; + } + .img:hover .change-image { + display: block; + } + h2 a { + color: $menuColor; + } + } + .no-colleagues { + font-size: emize(13); + line-height: emize(17, 13); + margin-bottom: 1em; + label.show { + font-size: emize(13, 13); + } + } + } + + // Change status + #change-status-trigger, #add-colleague-trigger { + display: none; + font-size: emize(13); + font-family: $sansSerif; + &.show { + display: block; + } + } + + #update-status-form, #add-colleague-form { + fieldset { + display: none; + clear: both; + padding: 0 0 .4em; + margin: 0; + &.show, .show { + display: block; + } + label { + display: none; + margin-bottom: 0.1em; + font-family: $sansSerif; + } + #status_message { + width: 93%; + margin-bottom: .3em; + resize: none; + height: 1.5em; + overflow: hidden; + } + #add_colleague { + width: 95%; + margin-bottom: .3em; + } + .controls { + display: none; + } + } + } + #update-status-form { + padding: .4em .4em 0; + margin-bottom: .3em; + background: $backgroundLight; + border-bottom: $border; + border-top: $border; + .count { + float: right; + padding: .1em; + width: 2.2em; + text-align: center; + font-family: $sansSerif; + font-size: emize(11); + @include radius(3px); + } + #cancel-trigger { + float: left; + } + } +} + +// jQ UI theme overide +.suggest_colleagues { + font-size: emize(11) !important; +} diff --git a/app/assets/stylesheets/edit.css.scss b/app/assets/stylesheets/edit.css.scss new file mode 100644 index 0000000..e895364 --- /dev/null +++ b/app/assets/stylesheets/edit.css.scss @@ -0,0 +1,78 @@ +.edit { + section.form, section.index, section.show { + @include columns(9); + margin-bottom: 2em; + } + + .avatar { + .control-group { + clear: both; + } + } + .edit_avatar { + width: 30%; + float: left; + img { + width: 90%; + max-width: 12em; + height: auto; + } + } + .avatar-help { + overflow: hidden; + } + + table { + width: 100%; + td, th { + &.url, &.title { + max-width: 16em; + span { + display: block; + max-width: 15em; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + } + } + } + + + nav.admin { + @include columns(3, true); + margin-bottom: 2em; + background: $backgroundLight; + h2 { + @include radius(0); + margin: 0; + } + ul { + &.users .users a, + &.roles .roles a, + &.feeds .feeds a, + &.shortcuts .shortcuts a, + a:hover { + background: $backgroundLightHover; + } + } + li { + a { + display: block; + padding: .5em 1em .6em; + border-top: white 1px solid; + border-bottom: $border; + font-size: emize(13); + line-height: emize(17, 13); + font-family: $sansSerif; + color: $menuColor; + &:focus, &:hover { + background: $backgroundLightHover; + } + } + } + &:last-child { + border-bottom: none; + } + } +} diff --git a/app/assets/stylesheets/feeds.css.scss b/app/assets/stylesheets/feeds.css.scss new file mode 100644 index 0000000..8ede003 --- /dev/null +++ b/app/assets/stylesheets/feeds.css.scss @@ -0,0 +1,143 @@ +section.box.feeds { + h1 { + margin-bottom: 0; + } + .box-content { + margin: 0; + ul { + margin: 0; + padding: 0; + } + li { + margin: 0; + overflow: hidden; + a { + display: block; + @include box-sizing('border-box'); + padding: 0.4em .7em 0; + border: solid white; + border-width: 1px 0; + margin: 0; + &:hover { + cursor: pointer; + background-color: $backgroundLight; + border-color: $borderColor; + } + p.summary, p.meta { + color: black; + } + } + img, span.icon-twitter, span.icon-rss { + float: left; + width: 46px; + margin: 3px 10px 11px 0; + border: none; + } + span.icon-twitter, span.icon-rss { + font-size: emize(46); + color: $backgroundDark; + overflow: hidden; + } + .text { + overflow: hidden; + margin-bottom: .5em; + h2 { + margin: 0 0 .1em; + padding: 0; + font-size: emize(20); + line-height: 1.2; + font-weight: normal; + } + p.summary, p.nomore { + font-size: emize(16); + line-height: emize(21, 16); + margin-bottom: .1em; + } + p.meta { + font-family: $sansSerif; + font-size: emize(13); + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + margin: 0; + color: $textColorDark; + span.comments { + display: block; + .icon-comment, .icon-comment-alt { + font-size: emize(15, 13); + color: $linkColor; + } + } + } + } + } + li.load-more { + padding: .2em .8em .8em; + .btn { + font-size: emize(13); + } + } + } +} + +section.box#feeds-news { + .box-content { + li { + img { + width: 68px; + margin-top: .3em; + } + } + li:first-child { + a { + padding-bottom: 0.4em; + } + img { + width: 120px; + margin: .3em 1em 0 0; + } + h2 { + margin: 0; + padding: 0; + font-size: emize(28); + line-height: emize(28, 26); + font-weight: normal; + } + p.summary { + font-size: emize(20); + line-height: emize(26, 20); + } + p.meta { + font-size: emize(13); + } + } + } +} + +section.box#feeds-feature { + .text { + clear: both; + h2 { + font-size: emize(20); + } + } + .crop { + max-height: 9em; + overflow: hidden; + margin-bottom: .5em; + border: $border; + } + img { + width: 100%; + height: auto; + } + .more { + margin: 0; + } + .more a { + font-family: $sansSerif; + font-size: emize(13); + padding-bottom: .4em; + border-bottom: 0; + } +} diff --git a/app/assets/stylesheets/functions.css.scss b/app/assets/stylesheets/functions.css.scss new file mode 100644 index 0000000..d00aaa0 --- /dev/null +++ b/app/assets/stylesheets/functions.css.scss @@ -0,0 +1,7 @@ +// Convenience function that calulates a size in em's based on the $context +// Note: Use only for font-size and line-height +// $target = rendering in pixel (well, maybe) +// $context = the DOM context em size +@function emize($target, $context: 16) { + @return ($target / $context) * 1em; +} diff --git a/app/assets/stylesheets/grid.css.scss b/app/assets/stylesheets/grid.css.scss new file mode 100644 index 0000000..20e0031 --- /dev/null +++ b/app/assets/stylesheets/grid.css.scss @@ -0,0 +1,22 @@ +body.malmo-masthead-dashboard { + padding: 0 .5em; + min-width: 56em; +} + +.wrapper { + max-width: 75em; + margin: 1em auto; +} + +.column { + margin-bottom: 1em; +} +.column-1 { + @include columns(3); +} +.column-2 { + @include columns(6); +} +.column-3 { + @include columns(3, true); +} diff --git a/app/assets/stylesheets/legacy/ie7.css.scss b/app/assets/stylesheets/legacy/ie7.css.scss new file mode 100644 index 0000000..26b0c65 --- /dev/null +++ b/app/assets/stylesheets/legacy/ie7.css.scss @@ -0,0 +1,21 @@ +section.box#search-person { + .box-content { + input#query-person { + width: 62%; + } + } +} + +section.box#colleagues { + padding-bottom: 1em; + #update-status-form { + fieldset { + .controls { + display: block; + } + } + input { + float: left; + } + } +} diff --git a/app/assets/stylesheets/legacy/ie9.css.scss b/app/assets/stylesheets/legacy/ie9.css.scss new file mode 100644 index 0000000..cb03b94 --- /dev/null +++ b/app/assets/stylesheets/legacy/ie9.css.scss @@ -0,0 +1,9 @@ +section.box#colleagues { + #update-status-form { + fieldset { + label { + display: block; + } + } + } +} diff --git a/app/assets/stylesheets/login.css.scss b/app/assets/stylesheets/login.css.scss new file mode 100644 index 0000000..29b532b --- /dev/null +++ b/app/assets/stylesheets/login.css.scss @@ -0,0 +1,57 @@ +.login .column-1 { + @include columns(5); +} +.login .column-2 { + @include columns(7, true); +} + +section#feature { + margin-top: 1.2em; + h1 { + font-size: emize(32); + line-height: emize(38, 32); + font-weight: normal; + margin: 0em 0 .1em; + } + p.about { + font-size: emize(20); + line-height: emize(28, 20); + font-style: italic; + margin-bottom: 1em; + } +} + +section#login { + margin-top: 1.6em; + label { + font-size: emize(13); + } + input[type="text"], + input[type="password"] { + font-size: emize(15); + } + input.btn { + margin-top: 1em; + clear: both; + } + ul.warning { + margin: 0 0 1em; + padding: 0; + li { + font-family: $sansSerif; + } + } + .login-instructions { + margin-top: 2em; + padding-top: .5em; + border-top: $border; + font-style: normal; + font-size: emize(15); + line-height: emize(19, 15); + margin-bottom: .5em; + } + .login .warning { + width: 28.8em; + margin: 0 auto -3em; + } +} diff --git a/app/assets/stylesheets/media_queries.css.scss b/app/assets/stylesheets/media_queries.css.scss new file mode 100644 index 0000000..d627a3b --- /dev/null +++ b/app/assets/stylesheets/media_queries.css.scss @@ -0,0 +1,361 @@ +@media ( min-width: 68em ) { + section.box#feeds-news .box-content li:first-child { + h2 { + font-size: emize(32); + } + } +} + +@media ( max-width: 68em ) { + body.malmo-masthead-dashboard { + min-width: 0; + } + section.box#feeds-news .box-content { + li.first-child { + h2 { + font-size: emize(20); + } + p.summary { + font-size: emize(15); + line-height: emize(19, 15);; + } + img { + width: 68px; + margin-top: .3em; + } + } + } + section#feature { + h1 { + font-size: emize(28); + } + p.about { + font-size: emize(18); + } + } +} + +@media ( max-width: 62em ) { + .column-1 { + @include columns(4); + } + .column-2 { + @include columns(8, true); + } + .column-3 { + clear: both; + @include columns(12); + } + + section#feature { + h1 { + font-size: emize(26); + line-height: emize(28, 26); + } + p.about { + font-size: emize(18); + line-height: emize(26, 18); + } + } + section.box#shortcuts-tools, + section.box#shortcuts-i-want { + h1.box-title { + margin-bottom: 0; + } + .box-content { + margin: 0; + li { + margin: 0; + a { + display: block; + margin: 0; + padding: .7em; + border-bottom: 1px $borderColor solid; + &:focus, &:hover, &:active { + background-color: $backgroundLight; + } + } + } + } + } + + .malmo-form .edit { + th.url, td.url { + display: none; + } + } +} + +@media ( max-width: 51em ) { + .column-1 { + @include columns(4); + } + .column-2 { + @include columns(8, true); + } + + body { + .wrapper { + margin: 0 1em; + padding-bottom: 1em; + } + padding: 0; + margin-left: 0; + margin-right: 0; + section.box { + margin: 0 0 1em; + h1 { + padding-left: .8em; + } + label.context-menu { + right: .6em; + } + } + } + + section.box#colleagues ul.box-content li img { + width: 32px; + height: 32px; + } + + .login .column-1 { + @include columns(6); + } + .login .column-2 { + @include columns(6, true); + } + section#login { + border-left: none; + padding-top: 0; + margin-top: 0; + } + + section#feature { + h1 { + margin: 0 0 .2em; + font-size: emize(26); + } + p.about { + font-size: emize(16); + line-height: emize(24, 16); + } + } + + .malmo-form .edit { + section.index, section.show, section.form, nav.admin { + @include columns(12); + } + th.secondary, td.secondary { + display: none; + } + } +} + +@media ( max-width: 52em ) { + section.site-search { + @include columns(8); + } + section.site-search-categories { + @include columns(4, true); + } +} + +@media ( max-width: 46em ) { + section.site-search, section.site-search-categories { + @include columns(12); + } + section.site-search { + margin-bottom: 0; + } + section.site-search-categories { + .ess-cat-bd-category, .ess-cat-bd-heading, .ess-cat-bd-all { + font-size: emize(15); + margin-bottom: .5em; + } + } + section.site-search-categories .ess-cat-bd-heading { + margin-top: 1.5em; + } + .malmo-form.edit { + nav.admin { + clear: both; + } + h1, nav.admin h2 { + @include radius(0); + } + section.form, section.show, section.index, nav.admin { + width: 100%; + @include radius(0); + } + section.index, section.show, section.form { + @include radius(0); + border: none; + margin-bottom: 0; + } + div.field { + label { + clear: both; + width: 100%; + float: none; + } + .help { + margin-left: 0; + } + } + .avatar-help, .edit_avatar { + width: 100%; + clear: both; + } + } + .malmo-form { + .form-horizontal { + .controls, .actions, .readonly { + margin-left: 0; + clear: both; + } + .control-label { + width: auto; + } + } + .control-group.readonly { + margin-bottom: 1em; + .control-label, .controls { + padding: 0; + } + } + } +} + +@media ( max-width: 44em ) { + body.site-search .wrapper { + font-size: emize(16, 16); + padding: 0 1em; + } + + body { + margin-left: 0; + margin-right: 0; + background-color: white; + .wrapper { + // font-size: emize(18, 16); + margin: 0; + } + + // One column layout + .column { + float: none; + margin-bottom: 0; + @include columns(12); + &.column-1, &.column-2, &.column-3 { + margin-right: 0; + margin-left: 0; + width: 100%; + } + } + + &.malmo-masthead-dashboard { + padding: 0; + margin: 0; + section.box { + border: none; + @include radius(0); + margin: 0 0 1em; + h1 { + padding-left: .8em; + @include radius(0); + } + label.context-menu { + right: .6em; + } + } + + section.box#colleagues ul.box-content li img { + width: 46px; + height: 46px; + } + + section.box.feeds { + .box-content li { + .summary { + display: none; + } + .text { + h2 { + margin: 0; + padding: 0; + } + p.meta { + font-size: emize(11); + } + } + } + } + section.box#feeds-news, section.box#feeds-dialog, section.box#my_own { + .box-content li { + a { + @include clearfix(); + } + img { + width: 46px; + height: 46px; + } + } + } + + section.box#feeds-news .box-content li:first-child { + img { + width: 46px; + margin: 3px 10px 11px 0; + } + h2 { + font-size: emize(20); + } + p.summary { + font-size: emize(16); + } + } + + section.box#feeds-feature { + a { + @include clearfix(); + } + img { + @include columns(6); + max-width: 12em; + max-height: 12em; + } + .crop { + overflow: visible; + margin-bottom: 0; + border: none; + } + .text { + @include columns(6, true); + clear: none; + h2 { + font-family: $serif; + font-size: emize(20); + } + } + .more { + clear: both; + } + } + } + } + section#feature { + margin: 1em .7em 1em; + } +} + + +// Force a one column form +@media ( max-width: 40em ) { + @include form-force-vertical; +} + +@media ( max-width: 36em ) { + section.site-search #q { + max-width: 60%; + } +} diff --git a/app/assets/stylesheets/mixins.css.scss b/app/assets/stylesheets/mixins.css.scss new file mode 100644 index 0000000..dcabf51 --- /dev/null +++ b/app/assets/stylesheets/mixins.css.scss @@ -0,0 +1,81 @@ +@mixin columns($span, $last: false, $gutter: 2%) { + $total-columns: 12; // Number of columns in the grid + + // (column width in percentage) minus its (own portion of all the gutters) + width: percentage($span / $total-columns) - (($total-columns / $span - 1) * $gutter / ($total-columns / $span)); + *width: percentage($span / $total-columns) - (($total-columns / $span) * $gutter / ($total-columns / $span)); // IE7 hack, difficult to put in ie7css + + // No gutter to the left if the column is the last to the right + @if not $last { + margin-right: $gutter; + } @else { + margin-right: 0; + } + @if $span == $total-columns { + margin-right: 0; + float: none; + } + + float: left; + @include box-sizing(border-box); +} + +@mixin radius($values) { + -moz-border-radius: $values; + -webkit-border-radius: $values; + border-radius: $values; +} + +@mixin transition($values) { + -webkit-transition: $values; + -moz-transition: $values; + -o-transition: $values; + transition: $values; +} + +@mixin box-shadow($values) { + -moz-box-shadow: $values; + -webkit-box-shadow: $values; + box-shadow: $values; +} + +@mixin opacity($value) { + -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(#{$value * 100})); + filter: alpha(opacity=($value * 100)); + opacity: $value; +} + +@mixin box-sizing($boxmodel) { + -ms-box-sizing: $boxmodel; + -webkit-box-sizing: $boxmodel; + -moz-box-sizing: $boxmodel; + box-sizing: $boxmodel; +} + +// Use with a media query to disable the hz mode below a breakpoint +@mixin form-force-vertical() { + .form-horizontal { + .control-label { + display: block; + width: 100%; + } + .controls { + width: 100%; + margin-left: 0; + clear: both; + } + } +} + +@mixin clearfix() { + *zoom: 1; + &:before, + &:after { + display: table; + content: ""; + line-height: 0; + } + &:after { + clear: both; + } +} diff --git a/app/assets/stylesheets/print.css.scss b/app/assets/stylesheets/print.css.scss new file mode 100644 index 0000000..0abbe7c --- /dev/null +++ b/app/assets/stylesheets/print.css.scss @@ -0,0 +1,9 @@ +@media print { + #update-status-form, + #search-person, + #colleagues .add, + #shortcuts-tools, + #shortcuts-i-want { + display: none !important; + } +} diff --git a/app/assets/stylesheets/search_person.css.scss b/app/assets/stylesheets/search_person.css.scss new file mode 100644 index 0000000..0b34712 --- /dev/null +++ b/app/assets/stylesheets/search_person.css.scss @@ -0,0 +1,20 @@ +section.box#search-person { + .box-content { + margin-top: 0; + padding: 0; + label, p { + font-family: $sansSerif; + font-size: emize(13); + } + label { + display: block; + margin-bottom: .1em; + } + input#query-person { + width: 68%; + } + } +} +.search_users .suggest-users p { + font-size: emize(13, 14); +} diff --git a/app/assets/stylesheets/shortcuts.css.scss b/app/assets/stylesheets/shortcuts.css.scss new file mode 100644 index 0000000..7920960 --- /dev/null +++ b/app/assets/stylesheets/shortcuts.css.scss @@ -0,0 +1,11 @@ +section.box#shortcuts-tools, +section.box#shortcuts-i-want { + .box-content { + li { + margin-bottom: .2em; + font-size: emize(13); + line-height: emize(21, 13); + font-family: $sansSerif; + } + } +} diff --git a/app/assets/stylesheets/site_search.css.scss b/app/assets/stylesheets/site_search.css.scss new file mode 100644 index 0000000..1bd8c54 --- /dev/null +++ b/app/assets/stylesheets/site_search.css.scss @@ -0,0 +1,156 @@ +body.site-search .wrapper { + max-width: 56em; + margin: 0 auto; + @include clearfix(); +} + +section.site-search { + margin: .45em 0 2em; + @include columns(9, false, 4%); +} + +section.site-search-categories { + margin-top: 0; + @include columns(3, true, 4%); +} + +section.site-search { + h1 { + display: none; + } + form label { + font-family: $serif; + font-size: emize(32); + margin-bottom: .4em; + } + #q { + width: 30em; + max-width: 75%; + } + .sort { + margin-bottom: 1.5em; + font-family: $sansSerif; + font-size: emize(13); + } + .sort li { + display: inline; + margin: 0; + } + .results { + ul { + margin: 0; + } + h2 { + margin-top: 0; + } + li { + margin: 0 0 1.5em; + } + } + .results { + ul, li { + list-style: none; + margin-left: 0; + padding-left: 0; + } + .extract { + margin-bottom: .3em; + .date, .file_info { + font-family: $sansSerif; + font-size: emize(13); + } + .date { + margin-left: .5em; + } + } + .category { + font-family: $sansSerif; + font-size: emize(13); + margin-bottom: .4em; + } + .breadcrumb { + margin: 0; + line-height: 1.1; + font-family: $sansSerif; + li { + display: inline; + font-size: emize(13); + line-height: 1.1; + a:after { + content: ("\f054"); + font-family: $iconFont; + margin: 0 .5em 0 .7em; + font-size: emize(13); + } + } + } + } + .suggestions { + list-style: none; + margin: 0; + padding: 0; + li { + display: inline; + margin-left: 0; + } + } + .summary { + margin-bottom: .5em; + font-family: $sansSerif; + font-size: emize(13); + } + .ess-bestbets { + .ess-header { + font-size: emize(22); + line-height: 1.1; + margin: 1em 0 .1em; + } + dd { + margin: 0; + padding: 0; + } + } +} + +section.site-search-categories { + h2 { + margin-top: 0; + } + font-family: $sansSerif; + div { + margin-bottom: 1em; + } + .ess-heading { + font-family: $sansSerif; + margin-bottom: .2em; + padding-bottom: .2em; + border-bottom: $border; + font-weight: bold; + font-size: emize(15); + } + .ess-cat-bd-heading { + margin-bottom: .2em; + font-weight: bold; + font-size: emize(13); + } + .ess-cat-bd-category, .ess-cat-bd-all { + margin-bottom: .2em; + font-size: emize(13); + } + strong { + font-weight: normal; + } + .ess-current, .ess-current strong { + font-weight: bold; + } +} + +ul.ui-autocomplete { + width: 24.7em !important; + li { + font-size: emize(13); + .hits { + float: right; + } + } +} diff --git a/app/assets/stylesheets/variables.css.scss b/app/assets/stylesheets/variables.css.scss new file mode 100644 index 0000000..9fcae81 --- /dev/null +++ b/app/assets/stylesheets/variables.css.scss @@ -0,0 +1,32 @@ +// Colors +$bodyColor: black; +$menuColor: $bodyColor; + +$linkColor: #007133; + +$borderColor: #ccc; +$border: $borderColor 1px solid; +$borderColorDark: darken($borderColor, 20%); +$borderDark: $borderColorDark 1px solid; + +$backgroundLight: #f5f5f5; +$backgroundLightHover: darken($backgroundLight, 5%); +$backgroundDark: #888; +$backgroundDarker: darken($backgroundDark, 14%); + +$textColorDark: $backgroundDark; + +$mastheadBackground: #444; +$mastheadBackgroundHighlight: #b10000; +$mastheadBackgroundHighlightGlare: lighten($mastheadBackgroundHighlight, 9%); + +$boxShadow: 2px 2px 3px #ccc; + +$dangerColor: #c00; + +// Fonts +$sansSerif: 'OpenSans', 'Verdana', 'DejaVu Sans', 'Bitstream Vera Sans', sans-serif; +$serif: Georgia, 'DejaVu Serif', 'Bitstream Vera Serif', serif; +/* NOTE: Use with font-weight: normal */; +$sansSerifSemibold: 'OpenSansSemibold', 'DejaVu Sans', 'Bitstream Vera Sans', sans-serif; +$iconFont: FontAwesome; \ No newline at end of file diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 0000000..568aa44 --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,130 @@ +# -*- coding: utf-8 -*- +class ApplicationController < ActionController::Base + protect_from_forgery + before_filter :init_body_class + + # Set a permanent cookie w/data from the user profile. Used by the masthead in other webapps + def set_profile_cookie + departments = current_user.roles.map { |d| { name: d.name, homepage_url: d.homepage_url } if d.category == 'department' }.compact + workingfields = current_user.roles.map { |w| { name: w.name, homepage_url: w.homepage_url } if w.category == 'working_field' }.compact + + if Rails.env.development? + myprofile = "myprofile-development" + elsif Rails.env.test? + myprofile = "myprofile-test" + else + myprofile = "myprofile" + end + + cookies.permanent[myprofile] = { + value: { + # Singular is for old style masthead + department: departments.present? ? departments.first[:homepage_url].gsub('http://komin.malmo.se/', '') : '', + workingfield: workingfields.present? ? workingfields.first[:homepage_url].gsub('http://komin.malmo.se/', '') : '', + # Plural for masthead w/dropdowns + departments: departments, + workingfields: workingfields + }.to_json, + expires: 365*10, + path: '/', + domain: 'malmo.se' + } + end + + # Catch errors and record not founds + unless Rails.env.development? + rescue_from ActionController::RoutingError, with: :not_found + rescue_from AbstractController::ActionNotFound, with: :not_found + rescue_from ActiveRecord::RecordNotFound, with: :not_found + rescue_from Exception, with: :error + end + def method_missing(method, *args) + not_found + end + + def not_found(exception = "404") + logger.warn "#{exception} #{request.fullpath}" + reset_body_classes + render template: "404", status: 404 + end + + def error(exception = "500") + logger.error("Exception: #{exception}\n" + + "#{' ' * 32 }User id: #{user? ? session[:user_id] : 'anonymous'}\n" + + "#{' ' * 32 }Params: #{params}") + reset_body_classes + render template: "500", status: 500 + end + + protected + + def user? + session[:user_id] + end + + def current_user + @current_user ||= User.find(session[:user_id]) if user? + end + + def admin? + user? and current_user.is_admin + end + + def require_user + redirect_to login_path unless user? + end + helper_method :user?, :admin?, :current_user + + def require_admin + not_authorized unless admin? + end + + # Use only when params[:id] is users id + def editing_myself? + current_user.id.to_i === params[:id].to_i + end + helper_method :editing_myself? + + def require_admin_or_myself + not_authorized unless admin? or editing_myself? + end + + def not_authorized(msg = "Du saknar behörighet för detta" ) + flash[:error] = msg + redirect_to root_path + end + + def allow_stubs? + + unless APP_CONFIG['allow_stubs'] + flash[:error] = 'Stubs are not activated' + redirect_to root_path + end + end + + def init_body_class + add_body_class(Rails.env) + add_body_class('malmo-masthead-dashboard') + add_body_class("user") if current_user + end + + # Adds classnames to the body tag + def add_body_class(name) + @body_classes ||= "" + @body_classes << "#{name} " + end + + def reset_body_classes + @body_classes = nil + init_body_class + end + + def sub_layout(name = "") + @sub_layout = name + end + + def avatar_full_url(username, style = :medium_quadrat) + "#{request.protocol}#{File.join(APP_CONFIG['avatar_base_url'], username, style.to_s)}.jpg" + end + helper_method :avatar_full_url +end diff --git a/app/controllers/avatars_controller.rb b/app/controllers/avatars_controller.rb new file mode 100644 index 0000000..557a333 --- /dev/null +++ b/app/controllers/avatars_controller.rb @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +class AvatarsController < ApplicationController + + before_filter { add_body_class('edit') } + before_filter { sub_layout("admin") if admin? } + before_filter :require_user, except: "show" + before_filter :require_admin_or_myself, except: "show" + + # Stream the :usernames's profile picture, or use the fallback avatar.png + def show + @user = User.where(username: params[:username]).first + if @user.blank? + render text: '404 Not found', status: 404 + else + style = params[:style].present? ? params[:style] : @user.avatar.default_style.to_s + begin + # Send etag based on the age of the image and the style + fresh_when etag: @user.avatar_updated_at.to_s + style + send_file @user.avatar.path(style) || File.join(Rails.root, 'app/assets/images/avatar.jpg'), + type: @user.avatar_content_type || "image/jpg", + disposition: 'inline' + rescue + render text: '404 Not found', status: 404 + end + end + end + + def edit + @user = User.find(params[:id]) + # We need to know where we should send the user after update + session[:referer] = request.env["HTTP_REFERER"] || nil + end + + def update + @user = User.find(params[:id]) + # Some User fields require admin rights for mass assignment + if @user.update_attributes(params[:user], as: ( :admin if admin? )) + redirect_to session[:referer] || user_path(@user.username), notice: "Profilbilden uppdaterades" + else + render action: "edit" + end + end +end diff --git a/app/controllers/colleagueships_controller.rb b/app/controllers/colleagueships_controller.rb new file mode 100644 index 0000000..756b1bb --- /dev/null +++ b/app/controllers/colleagueships_controller.rb @@ -0,0 +1,31 @@ +class ColleagueshipsController < ApplicationController + before_filter :require_user + + def search + term = "%#{params[:term]}%" + if term.present? + @colleagues = Colleagueship.search(current_user, term, 20) + else + @colleagues = {} + end + render json: @colleagues.map { |c| + email = (c.email.present? ? c.email : "ingen e-postaddress").downcase + { id: c.id, username: c.username, email: email, avatar_full_url: "#{avatar_full_url(c.username, :mini_quadrat)}", first_name: c.first_name, last_name: c.last_name } + } + end + + def create + @colleagueship = current_user.colleagueships.build(colleague_id: params[:colleague_id]) + if @colleagueship.save + render "created", layout: false + else + render "failed", layout: false + end + end + + def destroy + @colleagueship = current_user.colleagueships.find(params[:id]) + @colleagueship.destroy + render json: { status: :deleted } + end +end diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb new file mode 100644 index 0000000..7f4d983 --- /dev/null +++ b/app/controllers/dashboard_controller.rb @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- + +# Model-less controller for dashboard data from other models +class DashboardController < ApplicationController + before_filter :require_user + + def index + @limit = 5 + @feature_entry = cache_users_entries_for("feature").first + @feature_feed_url = Feed.where(category: "feature").first + + @news_entries = cache_users_entries_for("news") + @dialog_entries = cache_users_entries_for("dialog") + @my_own_entries = cache_users_entries_for("my_own") + + @tools_and_systems = cache_users_shortcuts_for("tools_and_systems") + @i_want = cache_users_shortcuts_for("i_want") + + @colleagueships = current_user.sorted_colleagues + end + + # Load more feed entries in requested category + def more_feed_entries + @limit = 10 + @category = params[:category] + @entries = current_user.feed_entries_in_category(@category, before: Time.at(params[:before].to_i), limit: @limit) + if @entries.present? + render :more_feed_entries, layout: false + else + render :no_more_feed_entries, layout: false + end + end + + private + + # Cache the user’s and her role’s feed entries in a given category + def cache_users_entries_for(category) + key = "feed_entries-#{current_user.id}-#{category}" + + Rails.cache.fetch(key, expires_in: 1.minute) do + current_user.feed_entries_in_category(category) + end + end + + # Cache the user’s shortcuts and her role’s shortcuts in a given category + def cache_users_shortcuts_for(category) + Rails.cache.fetch("shortcuts-#{current_user.id}-#{category}", expires_in: 10.minute) do + current_user.shortcuts_in_category(category) + end + end +end diff --git a/app/controllers/feeds_controller.rb b/app/controllers/feeds_controller.rb new file mode 100644 index 0000000..bcb1d08 --- /dev/null +++ b/app/controllers/feeds_controller.rb @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- + +# News feeds administration +class FeedsController < ApplicationController + before_filter { add_body_class('edit feeds') } + before_filter { sub_layout("admin") } + before_filter :require_admin + + def index + @feeds = Feed.order("recent_failures desc, total_failures desc").includes(:users) + end + + def new + @feed = Feed.new + end + + def edit + @feed = Feed.where(id: params[:id]).includes(:roles).first + end + + def create + @feed = Feed.new(params[:feed]) + + if @feed.save + redirect_to feeds_path, notice: "Nyhetsflödet skapades" + else + render action: "new" + end + end + + def update + @feed = Feed.find(params[:id]) + + if @feed.update_attributes(params[:feed]) + redirect_to feeds_path, notice: "Nyhetsflödet uppdaterades" + else + render action: "edit" + end + end + + def destroy + @feed = Feed.find(params[:id]) + @feed.destroy + redirect_to feeds_path, notice: "Nyhetsflödet raderades" + end +end diff --git a/app/controllers/my_own_feeds_controller.rb b/app/controllers/my_own_feeds_controller.rb new file mode 100644 index 0000000..f07ef60 --- /dev/null +++ b/app/controllers/my_own_feeds_controller.rb @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- + +# Users own feeds, not avaiable to anybody else +# Those feeds are stored as regular Feed objects with the "my_own" category +class MyOwnFeedsController < ApplicationController + before_filter { add_body_class('edit feeds') } + before_filter :require_user, :clear_feed_entries_cache + + def index + @feeds = Feed.joins(:users).where(category: "my_own", users: { id: current_user.id } ) + end + + def new + @feed = Feed.new + end + + def edit + # Get feed and secure that it is the users own feed + @feed = Feed.joins(:users).where(id: params[:id], category: "my_own", users: { id: current_user.id } ).first + end + + def create + @feed = Feed.new(params[:feed]) + + # Glue feed to the user + @feed.category = "my_own" + @feed.user_ids = current_user.id + + if @feed.save + redirect_to my_own_feeds_path, notice: "Ditt nyhetsflöde skapades" + else + render action: "new" + end + end + + def update + # Check that it is the users own feed + safe_id = Feed.joins(:users).where(id: params[:id], category: "my_own", users: { id: current_user.id } ).first.id + @feed = Feed.find(safe_id) + + # Glue feed params to user + @feed.category = "my_own" + @feed.user_ids = current_user.id + + if @feed.update_attributes(params[:feed]) + redirect_to my_own_feeds_path, notice: "Ditt nyhetsflöde uppdaterades" + else + render action: "edit" + end + end + + def destroy + # Check that it is the users own feed + @feed = Feed.joins(:users).where(id: params[:id], category: "my_own", users: { id: current_user.id } ).first + if @feed.destroy + redirect_to my_own_feeds_path, notice: "Ditt nyhetsflöde raderades" + else + redirect_to my_own_feeds_path, warning: "Nyhetsflödet kunde inte raderas" + end + end + + def destroy_all + # Destroy all the users own feeds + @feeds = Feed.joins(:users).where(category: "my_own", users: { id: current_user.id } ) + if @feeds.destroy_all + redirect_to root_path, notice: "Alla Mina flöden raderades" + else + redirect_to my_own_feeds_path, warning: "Nyhetsflödena kunde inte raderas" + end + end + + private + + # Clear the users key/value ttl cache for feed entries + def clear_feed_entries_cache + Rails.cache.delete("feed_entries-#{current_user.id}-my_own") + end +end diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb new file mode 100644 index 0000000..0019a45 --- /dev/null +++ b/app/controllers/roles_controller.rb @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- + +class RolesController < ApplicationController + + before_filter { add_body_class('edit') } + before_filter { sub_layout("admin") if admin? } + before_filter :require_admin + + def index + @roles = Role.all + end + + def new + @role = Role.new + end + + def edit + @role = Role.find(params[:id]) + end + + def create + @role = Role.new(params[:role]) + + if @role.save + redirect_to roles_url, notice: "Rollen skapades" + else + render action: "new" + end + end + + def update + @role = Role.find(params[:id]) + + if @role.update_attributes(params[:role]) + redirect_to roles_url, notice: "Rollen uppdaterades" + else + render action: "edit" + end + end + + def destroy + @role = Role.find(params[:id]) + @role.destroy + redirect_to roles_url, notice: "Rollen togs bort" + end +end diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb new file mode 100644 index 0000000..1cf7f92 --- /dev/null +++ b/app/controllers/sessions_controller.rb @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +class SessionsController < ApplicationController + before_filter { add_body_class('login') } + + def new + # Establish a user session if the user_agent cookie satisfy the remember me criterias + @user_agent = UserAgent.find( cookies.signed[:user_agent][:id] ) + if @user_agent.authenticate( cookies.signed[:user_agent][:token] ) + session[:user_id] = @user_agent.user_id + @user_agent.user.update_attribute("latest_login", Time.now) + + set_profile_cookie + redirect_to root_url + end + rescue # Login form + end + + def create + # Establish a user session if username/password is valid + @user = Authentication.authenticate( params[:username], params[:password] ) + if @user + + tracker = UserAgent.track( @user.id, cookies.signed[:user_agent], params[:remember_me], request.env['HTTP_USER_AGENT'] ) + # Set/update a cookie that keep tracks of this, and only this, user agent + cookies.permanent.signed[:user_agent] = { + value: { id: tracker[:id], token: tracker[:token] }, + secure: !Rails.env.development?, + path: root_path + } + session[:user_id] = @user.id + @user.latest_login = Time.now + @user.save + + set_profile_cookie + redirect_to root_url + else + @login_failed = "Fel användarnamn eller lösenord. Vänligen försök igen." + render "new" + end + end + + def destroy + begin + @user_agent = UserAgent.find(cookies.signed[:user_agent][:id]) + @user_agent.update_attributes( remember_me: false ) + rescue + logger.warn { "'Remember me' for user #{current_user.id} couldn't be reset on logout" } + end + session[:user_id] = nil + redirect_to root_url, notice: "Nu är du utloggad" + end +end diff --git a/app/controllers/shortcuts_controller.rb b/app/controllers/shortcuts_controller.rb new file mode 100644 index 0000000..6cec5e8 --- /dev/null +++ b/app/controllers/shortcuts_controller.rb @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +require 'digest/sha1' + +class ShortcutsController < ApplicationController + before_filter { add_body_class('edit') } + before_filter { sub_layout("admin") } + before_filter :require_admin + + def index + @shortcuts = Shortcut.all + end + + def new + @shortcut = Shortcut.new + end + + def edit + @shortcut = Shortcut.where(id: params[:id]).includes(:roles).first + end + + def create + @shortcut = Shortcut.new(params[:shortcut]) + + if @shortcut.save + redirect_to shortcuts_url, notice: "Genvägen skapades" + else + render action: "new" + end + end + + def update + @shortcut = Shortcut.find(params[:id]) + + if @shortcut.update_attributes(params[:shortcut]) + redirect_to shortcuts_url, notice: "Genvägen uppdaterades" + else + render action: "edit" + end + end + + def destroy + @shortcut = Shortcut.find(params[:id]) + @shortcut.destroy + redirect_to shortcuts_url, notice: "Genvägen togs bort" + end +end diff --git a/app/controllers/site_search_controller.rb b/app/controllers/site_search_controller.rb new file mode 100644 index 0000000..e787c32 --- /dev/null +++ b/app/controllers/site_search_controller.rb @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +require 'open-uri' + +class SiteSearchController < ApplicationController + before_filter { add_body_class "site-search" } + + def index + @terms = params[:q] + if @terms.present? + @results = SiteSearch::Search.new(params.except(:action, :controller).to_query, APP_CONFIG['site_search_query_url']) + end + + if request.xhr? + render :more, layout: false + else + render :index + end + end + + def autocomplete + begin + results = open("#{APP_CONFIG['site_search_autocomplete_url']}?q=#{params[:q]}&ilang=sv&callback=results", read_timeout: 5).first + rescue Exception => e + results = 'results({})' + end + render json: results + end +end diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb new file mode 100644 index 0000000..34eefb6 --- /dev/null +++ b/app/controllers/users_controller.rb @@ -0,0 +1,167 @@ +# -*- coding: utf-8 -*- +class UsersController < ApplicationController + + before_filter { add_body_class('edit') } + before_filter { sub_layout("admin") if admin? } + before_filter :require_user + before_filter :require_admin_or_myself, only: [ :edit, :update ] + before_filter :require_admin, only: :destroy + + def index + @total_users = User.count + @last_week_users = User.where("latest_login > ?", Time.now - 1.week).count + @registered_last_week_users = User.where("created_at > ?", Time.now - 1.week).count + @has_status = User.where("status_message != ?", "").count + end + + # Search user on the fields username, email, first_name, last_name + # Returns a hash in json or a @users array for html rendering + def search + term = "%#{params[:term]}%" + if term.present? + @users = User.search(term, 50) + else + @users = {} + end + + respond_to do |format| + format.html + format.json { + render json: @users.map { |u| + email = (u.email.present? ? u.email : "ingen e-postaddress").downcase + { id: u.id, username: u.username, email: email, avatar_full_url: "#{avatar_full_url(u.username, :mini_quadrat)}", first_name: u.first_name, last_name: u.last_name } + } + } + end + end + + def show + @user = User.where(username: params[:username]).first + if @user.blank? + reset_body_classes + sub_layout + render template: "404", status: 404 + end + end + + def edit + @user = User.where(id: params[:id]).includes(:roles).first + @user_roles = user_roles + @roles = Role.all + end + + def update + @user = User.find(params[:id]) + @roles = Role.all + # Prevent and admin from un-admin herself + if admin? && editing_myself? && params[:user][:is_admin] == "0" + flash.now[:warning] = "Du kan inte ta bort din egen administratörsrättighet!" + render action: "edit" + else + # Pass empty role HBTM array if all roles are unchecked + params[:user] = { role_ids: [] } if params[:user][:role_ids].blank? + # some fields require admin rights for mass assignment + if @user.update_attributes(params[:user], as: ( :admin if admin? )) + set_profile_cookie + redirect_to user_path(@user.username), notice: "Användaren uppdaterades" + else + render action: "edit" + end + end + end + + def update_status_message + respond_to do |format| + current_user.status_message = params[:status_message] + current_user.status_message_updated_at = Time.now + if current_user.save + format.html { redirect_to root_path } + format.json { render json: { response: "ok", status_message: User.find(current_user.id).status_message }, status: 200 } + else + format.html { redirect_to root_path; flash[:warning] = "Din status kunde inte uppdateras. Försök lite senare." } + format.json { render json: { response: "error", status_message: current_user.status_message }, status: 500 } + end + end + end + + def my_profile + redirect_to user_path(current_user.username) + end + + def my_roles + redirect_to edit_user_path(current_user.id) + end + + # User selects optional feeds + def select_feeds + @user = User.where(id: current_user.id).includes(:roles, :feeds).first + @feeds = Feed.where(category: params[:category]).includes(:roles) + end + + def update_feeds + # Get users feed ids for **all other** feed categories so we don't delete them + other_categories_feeds = current_user.feeds.where("category != ?", params[:category]).pluck(:id) + + # Set **all** the users feeds + current_user.feed_ids = other_categories_feeds + ( params[:user][:feed_ids] or [] ) + + clear_feed_entries_cache(params[:category]) + redirect_to root_path, notice: "Dina flöden uppdaterades" + end + + # Reset user feeds to default for one params[:category] + def reset_feeds + # Get users feed ids for **all other** feed categories so we don't delete them + current_user.feed_ids = current_user.feeds.where("category != ?", params[:category]).pluck(:id) + + clear_feed_entries_cache(params[:category]) + redirect_to root_path, notice: "Inställningarna för #{Feed::CATEGORIES[params[:category]]} återställdes" + end + + # User selects optional shortcuts + def select_shortcuts + @user = User.where(id: current_user.id).includes(:roles, :shortcuts).first + @shortcuts = Shortcut.where(category: params[:category]).includes(:roles) + end + + def update_shortcuts + # Get users shortcuts ids for **all other** shortcut categories so we don't delete them + other_categories_shortcuts = current_user.shortcuts.where("category != ?", params[:category]).pluck(:id) + + # Set **all** the users shortcuts + current_user.shortcut_ids = other_categories_shortcuts + ( params[:user][:shortcut_ids] or [] ) + + clear_shortcut_cache(params[:category]) + redirect_to root_url, notice: "Dina #{Shortcut::CATEGORIES[params[:category]]} uppdaterades" + end + + # Reset user shortcuts to default for one params[:category] + def reset_shortcuts + # Get users shortcuts ids for **all other** shortcut categories so we don't delete them + current_user.shortcut_ids = current_user.shortcuts.where("category != ?", params[:category]).pluck(:id) + + clear_shortcut_cache(params[:category]) + redirect_to root_url, notice: "Inställningarna för #{Shortcut::CATEGORIES[params[:category]]} återställdes" + end + + def add_colleague + @user = User.where(username: params[:add_colleague]).first + render :layout => false + end + + def user_roles + current_user.roles.map { |r| r.category == "department" ? 'department': 'working_field' }.compact + end + + private + + # Clear the users key/value ttl cache for feed entries + def clear_feed_entries_cache(category) + Rails.cache.delete("feed_entries-#{current_user.id}-#{category}") + end + + # Clear the users key/value ttl cache for shortcuts + def clear_shortcut_cache(category) + Rails.cache.delete("shortcuts-#{current_user.id}-#{category}") + end +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 0000000..7759ca3 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +module ApplicationHelper + + def title(t) + @title = t + end + + def title_suffix + APP_CONFIG["title_suffix"] + end + + def h1 + @title + end + + def separator(current, total, question=false) + separator = ", " if total > current + 2 + separator = " eller " if total == current + 2 + separator = "?" if total == current + 1 && question + separator + end + + def page_title + !@title.nil? ? "#{@title} - #{title_suffix}" : title_suffix + end + + def tags_whitelist + { tags: %w(a i em li ul ol h1 h2 h3 blockquote br sub sup p img), + attributes: %w(href src) } + end +end diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb new file mode 100644 index 0000000..a586f10 --- /dev/null +++ b/app/helpers/dashboard_helper.rb @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- + +module DashboardHelper + def summary(text) + sanitize truncate( strip_tags(text), { separator: ' ', length: 140, omission: ' …' } ) + end + + # Is the feed entry a tweet? + def tweet?(entry) + entry.guid.present? && !!entry.guid.match('^http://twitter.com/') + end +end diff --git a/app/models/colleagueship.rb b/app/models/colleagueship.rb new file mode 100644 index 0000000..c419725 --- /dev/null +++ b/app/models/colleagueship.rb @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- + +class Colleagueship < ActiveRecord::Base + attr_accessible :colleague_id, :create, :destroy, :user_id + + belongs_to :user + belongs_to :colleague, :class_name => "User" + + validates :colleague_id, presence: true + + # Prevent duplicate entries of colleague_id and user_id + validates :colleague_id, :uniqueness => {:scope => :user_id} + + def self.search(user, term, max = 20) + User.where("(username LIKE ? OR + first_name LIKE ? OR + last_name LIKE ? OR + concat_ws(' ', first_name, last_name) LIKE ? OR + email LIKE ?) AND + id NOT IN (?)", + term, term, term, term, term, user.colleagues.map(&:id).push(user.id)) + .order(:first_name).limit(max) + end +end diff --git a/app/models/feed.rb b/app/models/feed.rb new file mode 100644 index 0000000..a9b6d46 --- /dev/null +++ b/app/models/feed.rb @@ -0,0 +1,93 @@ +# -*- coding: utf-8 -*- +require 'open-uri' + +# News feeds +class Feed < ActiveRecord::Base + CATEGORIES = { + "news" => "nyheter", + "dialog" => "diskussioner", + "feature" => "tema", + "my_own" => "användare" + } + + has_and_belongs_to_many :roles + has_and_belongs_to_many :users + has_many :feed_entries, dependent: :destroy + + attr_accessible :title, :feed_url, :category, :role_ids + + # Bind some data to the feed during fetching and parsing + attr_accessor :content, :parsed_feed, :updated + + # Fetch url and parse it is part of the form validation. + # Validation is disabled in workers batch mode + before_validation :fix_url, :fetch, :parse + + after_save :save_feed_entries + + # Fetch a feed w/open-uri + def fetch + begin + timeout(5) do + self.content = open(feed_url).read + end + true + rescue Exception => e + errors.add(:feed_url, "Flödet kunde inte hämtas.") + logger.warn "Couldn't fetch feed #{id} #{feed_url}: #{e}" + false + end + end + + # Parse a feed file w/Feedzirra + def parse + begin + self.parsed_feed = Feedzirra::Feed.parse(content) + self.title = parsed_feed.title || "Utan titel" + self.url = parsed_feed.url + self.fetched_at = Time.now + previous_checksum = checksum + self.checksum = Digest::MD5.hexdigest(content) + + # Is the feed updated since last fetch? + self.updated = previous_checksum != checksum + true + rescue => e + # Parsing failed + logger.warn "Couldn't parse feed #{id} #{feed_url}: #{e}" + errors.add(:feed_url, "Flödet kunde inte tolkas. Kontrollera att det är ett giltigt RSS- eller Atom-flöde.") + false + end + end + + private + + def save_feed_entries + # Save feed_entries for feed + FeedEntry.add_entries(id, parsed_feed.entries) if updated + end + + # Pre-parsing and fixing of a feed url, manipulate it for some special cases + def fix_url + # Remove Safari’s pseudo protocol + self.feed_url.gsub!(/^feed:\/\//, '') + + # Convert #Prova att söka efter sidan i sökfältet uppe till höger eller använd menyerna.
+Prova att navigera med menyn ovan.
+Prova att söka efter sidan i sökfältet uppe till höger eller använd menyerna.
+Maybe you tried to change something you didn't have access to.
+Vänligen försök igen lite senare
+Välkommen åter om en liten stund
+ + \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..8e1d420 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,5 @@ +# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file +# +# To ban all spiders from the entire site uncomment the next two lines: +User-Agent: * +Disallow: / diff --git a/public/system/maintenance.html b/public/system/maintenance.html new file mode 100644 index 0000000..53a8211 --- /dev/null +++ b/public/system/maintenance.html @@ -0,0 +1,29 @@ + + + + + + +Välkommen åter om en liten stund
+The audio of the address and video of the address will be available online at www.whitehouse.gov at 6:00 a.m. ET, Saturday, April 6, 2013.
+Remarks of President Barack Obama
+ Weekly Address
+ The White House
+ April 6, 2013
Hi, everybody. Our top priority as a nation, and my top priority as President, must be doing everything we can to reignite the engine of America’s growth: a rising, thriving middle class. That’s our North Star. That must drive every decision we make.
+Now, yesterday, we learned that our businesses created 95,000 new jobs last month. That’s about 500,000 new jobs this year, and nearly 6.5 million new jobs over the past three years.
+But we’ve got more work to do to get the economy growing faster, so that everybody who wants a job can find one. And that means we need fewer self-inflicted wounds from Washington, like the across-the-board spending cuts that are already hurting many communities – cuts that economists predict will cost our economy hundreds of thousands of jobs this year.
+If we want to keep rebuilding this economy on a stronger, sturdier foundation for growth – growth that creates good, middle-class jobs – we need to make smarter choices.
+This week, I’ll send a budget to Congress that will help do just that – a fiscally-responsible blueprint for middle-class jobs and growth.
+For years, an argument in Washington has raged between reducing our deficits at all costs, and making the investments we need to grow the economy. My budget puts that argument to rest. Because we don’t have to choose between these goals – we can do both. After all, as we saw in the 1990s, nothing reduces deficits faster than a growing economy.
+My budget will reduce our deficits not with aimless, reckless spending cuts that hurt students and seniors and middle-class families – but through the balanced approach that the American people prefer, and the investments that a growing economy demands.
+Now, the truth is, our deficits are already shrinking. That’s a fact. I’ve already signed more than $2.5 trillion in deficit reduction into law, and my budget will reduce our deficits by nearly $2 trillion more, without harming the recovery. That surpasses the goal of $4 trillion in deficit reduction that many economists believe will stabilize our finances.
+We’ll make the tough reforms required to strengthen Medicare for the future, without undermining the rock-solid guarantee at its core. And we’ll enact commonsense tax reform that includes closing wasteful tax loopholes for the wealthy and well-connected – loopholes like the ones that can allow a billionaire to pay a lower tax rate than his or her secretary.
+This is the compromise I offered the Speaker of the House at the end of last year. While it’s not my ideal plan to further reduce the deficit, it’s a compromise I’m willing to accept in order to move beyond a cycle of short-term, crisis-driven decision-making, and focus on growing our economy and our middle class for the long run. It includes ideas many Republicans have said they could accept as well. It’s a way we can make progress together.
+But deficit reduction cannot come at the cost of economic growth or middle-class security. And it doesn’t have to. My budget will make critical investments to grow the economy, create jobs, and strengthen the middle class.
+As I said in my State of the Union Address, every day, we should ask ourselves three questions: how do we make America a magnet for good jobs? How do we give our workers the skills they need to do those jobs? And how do we make sure that hard work leads to a decent living?
+To make America a magnet for good jobs, we’ll invest in high-tech manufacturing and homegrown American energy, put people to work building new roads, bridges, and schools, and cut red tape to help businesses grow.
+To give workers the skills they need to do those jobs, we’ll invest in education that begins in the earliest years, and job training that better equips workers to compete in a 21st century economy.
+To make sure hard work is rewarded, we’ll build new ladders of opportunity into the middle class, and focus on revitalizing some of our communities hardest-hit by recession and job loss.
+All of these investments will help grow the economy and create jobs. None of them will add to the deficit. And I will lay out these priorities in greater detail in the days ahead.
+It’s a budget that doesn’t spend beyond our means. And it’s a budget that doesn’t make harsh and unnecessary cuts that only serve to slow our economy. We’ll keep our promise to an aging generation by shoring up Medicare. And we’ll keep our promise to the next generation by investing in the fundamentals that have always made America strong – manufacturing and innovation, energy and education.
+Because that’s what it’ll take to make sure America remains strong in the years ahead – and to leave behind something better for our kids.
+Thank you.
+###
+]]>MR. CARNEY: Before I take your questions, I just wanted to let you know about some events next week related to the President's push for common-sense measures to reduce gun violence.
+As the Senate returns from the Easter recess to begin considering such measures, the President, the Vice President and the First Lady will hold events outside of Washington D.C. and at the White House to encourage Americans to make their voices heard in this important debate. As you know, the President will visit Hartford, Connecticut, where he will meet with families affected by the shooting at Sandy Hook Elementary School, and to give a speech reminding members of Congress that those who have been most affected by tragic gun violence deserve a vote on the measures currently being considered.
+On Tuesday, the Vice President will hold an event with law enforcement officials here at the White House, echoing the President's call on Congress to pass common-sense gun legislation.
+On Wednesday, the First Lady will visit her hometown of Chicago, where she will speak from her experience as a Chicagoan and a mother about the importance of providing young people with opportunities to achieve their full potential, including by allowing them to grow up in safe, violence-free communities.
+And then on Thursday, Vice President Biden will appear on MSNBC's "Morning Joe" for a roundtable discussion with the show's hosts and experts with diverse opinions on the gun safety debate.
+And with that, I will take your questions. Jim, Associated Press.
+Q Budget question, and one other topic. The budget the President will propose incorporates what you have put up on the screen there, which is the President's offer to Speaker Boehner back in December. That offer was rejected by House Republicans, and I'm wondering what the President thinks has changed that would actually make this a viable proposal now, four months later, or even during the year, as that budget gets debated?
+Q Well, I'll say a couple of things. One, it wasn't rejected by House Republicans. The Speaker of the House walked away from those negotiations, unfortunately. I think the offer the President made to Speaker of the House Boehner was widely viewed -- appropriately -- as a good-faith offer that met the Republicans halfway on the issues of revenue on the one hand, and entitlement reforms and savings from entitlement reforms on the other.
+And as we have been saying all along, that offer stands. It has been available to Republicans ever since. And it is, I can confirm, a part of the President's budget proposal next week.
+It is part of it because the President believes we need a broad, balanced approach to our fiscal challenges. We need a budget that reduces the deficit but also invests in infrastructure and education and innovation; that makes the investments that help the middle class grow; that protects middle-class families; that puts in place the building blocks for future economic growth.
+And what the President's budget will demonstrate is that it is not an either/or proposition; that if you make wise, balanced choices when it comes to deficit reduction, if you ask everyone to chip in, if you ask the very wealthy and the well-connected to contribute by eliminating their special tax provisions and loopholes from the tax code, you can put forward a plan that exceeds the goal of $4 trillion in deficit reduction over 10 years, that stabilizes our debt, and invests in our economy, invests in our families, invests in our businesses. And that’s what the President's budget will do.
+Q Does he think that this is any more palatable today to, let’s say -- you said rejected by the Speaker -- but any more palatable to the Speaker?
+MR. CARNEY: Well, let’s examine what we’ve seen from Republicans in terms of budget proposals. We have a wildly ideological document produced by House Republicans that’s been broadly dismissed by economists as fanciful, even in its claims to balance over 10 years; that represents an effort to drastically cut programs that help middle-class families; that voucherizes Medicare, shifts costs onto seniors who can’t afford it while giving a $5.7 trillion tax cut mostly to the wealthy. That has not been taken very seriously.
+The President’s proposal, as I think people have been discussing this morning, represents a middle-of-the-road, common-sense approach to dealing with these challenges. The President has been engaged over the past weeks in a conversation with lawmakers of both parties about the need to find common ground, and he has been exploring with Republic lawmakers where that common ground can be found.
+And there has been interest expressed by Republican lawmakers in the idea when it comes to our budget challenges of taking a balanced approach -- that if we achieve savings through entitlement reforms, we should also, in the name of balance and in the -- with the goal of a budget that allows our economy to grow and create jobs, ask the well-off and well-connected to contribute through tax reform -- tax reform which, by the way, was elemental to the proposal that the Speaker put forward last year; said he could achieve up to a trillion dollars in revenue from the wealthy through the process of closing loopholes. It was elemental to the proposal that the Republican nominee for President made last year. He said that he would go after deductions as a means of achieving some revenue. Obviously there were huge problems with the rest of his plan.
+But the President’s proposal, as you know, includes the provision that would cap deductions for wealthier Americans at 28 percent -- a very common-sense proposition.
+Q Speaking of revenue, as you know, the President has this inflation-adjustment proposal in this plan. Time and again, the President has said that he would not raise taxes on the middle class. One of the effects of that so-called chained CPI inflation adjustment is that it kicks people into higher tax brackets faster. That’s an impact on the middle class. Isn’t that an increase on the middle class, and is the President backtracking on this --
+MR. CARNEY: Well, let’s be clear, this is a technical adjustment to the so-called CPI -- called chained CPI that has been advocated by Republicans, that Mitch McConnell asked for in a letter that he presented during the negotiations over these budget issues. The offer that the President made to Speaker Boehner, and which is incorporated in the President’s budget, is not the President’s ideal approach to our budget challenges, but it is a serious compromise proposition that demonstrates that he wants to get things done, that he believes that we in Washington ought to do the business of the American people by coming together and finding common ground.
+And what his budget will prove is that you can do this. You can deal with our deficits without gutting programs that help the middle class, that help seniors; without slashing investments in airports and roads and highways and schools that we need to help our economy grow, not just next year but 10 years from now and 20 years from now; without eliminating investments or cutting investments in innovative research and development, whether it’s medical research or technological research that help our economy grow and help improve the health of our citizenry.
+So that’s what the -- that’s the proposition the President will put forward on Wednesday. And he believes that there is an opportunity now to come together as a nation, come together as Republicans and Democrats here in Washington, and get this done for the American people, for the middle class.
+Q Jay, I know my colleagues have more questions on this, but I just wanted to quickly ask about these visits that the President is going to have from leaders of Turkey, Jordan, UAE and Qatar. Is the President trying to coordinate assistance to Syrian rebels by having all of these leaders of countries that have been in the process of helping disparate elements of the opposition in Syria?
+MR. CARNEY: It is true that, as you saw earlier today, we announced a number of upcoming visits by leaders from the Middle East as well as from Turkey. The President looks forward to welcoming his counterparts from the UAE, from Qatar, Jordan and Turkey to Washington over the next several weeks.
+As you know, President Obama has very close relationships with these leaders, and he has a deep personal interest in the region, as you saw during his recent trip. He will use these opportunities to discuss the complex developments in the broader Middle East -- so not just Syria, but including Syria. There are obviously a number of issues for these leaders and the President to discuss, including Syria; including his recent visit to Jordan, Israel and the Palestinian territories; including the broader developments in the Arab Spring.
+So he looks forward to these visits. And they reflect his commitment and interest in the region and in our policies towards the region.
+Q Follow up, Jay? Going back to Jim's earlier questions about the budget -- Speaker Boehner this morning said the President was ignoring Republican's pleas not to make entitlement reforms hostage to more revenues. Given his staunch refusal to contemplate further revenues, what makes the President think he can persuade him or Republicans to accept the increase in revenues that you're putting forward in your budget proposal? And is going beyond Speaker Boehner part of your strategy?
+MR. CARNEY: Well, it's an excellent question, because you're basically asking, do we believe that Speaker Boehner could come to accept the proposals that Speaker Boehner made in December, and actually -- achieving less revenue than Speaker Boehner said he could achieve by closing loopholes and eliminating special tax provisions.
+We hope that’s possible. We believe it's the right thing to do. When he talks about holding entitlement reforms hostage, his proposal -- the proposal he endorsed that the House passed that Chairman Ryan put forward -- eliminates Medicare as we know it; voucherizes the program; shifts costs, I believe -- I forget the exact figure -- $4,000 or $5,000 on average to seniors annually, unnecessarily.
+It would be one thing -- it wouldn’t still be good policy -- but it would be one thing if that was the proposition alone, and it was an argument that we needed to do this in and of itself -- to voucherize Medicare, shift all these thousands of dollars of costs to each senior in America. But it is coupled with a proposal that tax -- that gives tax cuts of $5.7 trillion over 10 years disproportionately to the wealthy. And the President is very comfortable saying that that is the wrong approach. And that’s not just his opinion, it's the opinion of a majority of the American people.
+This is the debate we had during the election. It was the number-one debate of the election. And that approach was I think very soundly rejected by the American people.
+The President is engaged in conversations with potential members of the common-sense caucus, with Republicans who will at least entertain the idea of dealing with our budget challenges in a balanced way -- not just through spending cuts and cuts to entitlement programs, but through a package of proposals that ask the wealthy and well-to-do to give up their tax breaks, their special provisions in the tax code; that make sensible reforms to our entitlements; that protect our seniors and strengthen those programs and allow us -- the overall package allows us to make investments in key areas of our economy and in our people and the middle class so that we can grow and expand and create jobs.
+That’s the sort of fundamental principle that he is putting forward, and it will be reflected in his budget. And he's -- it's more a matter of coincidence than anything else, but he's having dinner that very night that his budget is released with another group of senators, Republican senators. And he looks forward to that discussion very much.
+Q Can I just ask, on North Korea -- you addressed this quickly yesterday on the way back -- but there are reports that North Korea is moving missiles to the coast. Wanted to know if you had any more information about whether that constitutes another threat, or whether there is a concern that they may be planning a missile test? I guess the birthday of Kim Il-sung is coming up soon. Is it possible to connect --
+MR. CARNEY: Thank you for the question. We've obviously seen the reports that North Korea may be making preparations to launch a missile, and we're monitoring this situation closely. And we would not be surprised to see them take such an action. We have seen them launch missiles in the past, and the United Nations Security Council has repeatedly condemned them as violations of the North's obligations under numerous Security Council resolutions, and it would fit their current pattern of bellicose, unhelpful and unconstructive rhetoric and actions.
+We urge them to stop with the provocations, and to focus instead on meeting their international obligations and feeding their own people. They are only making themselves more and more isolated from the rest of the world, as I've been saying all week, and undermining their stated goal of economic development.
+Jon.
+Q Jay, some of the President's strongest supporters are -- think this is a terrible idea, of eliminating -- of limiting cost-of-living increases for Social Security. The Progressive Change Campaign said this morning, "You can't call yourself a Democrat and support Social Security benefit cuts. The President is proposing to steal thousands of dollars from grandparents and veterans." Your response?
+MR. CARNEY: The President believes that the budget he will put forward next Wednesday represents a balanced approach to dealing with our deficit challenges and making the necessary investments in our economy and our people.
+It protects our seniors. It does not go the Republican route of eviscerating social programs and voucherizing Medicare. It is not the ideal proposal, but the President recognizes, unlike, I guess, Republicans, that we're not in the business in Washington of getting everything we want. That does not happen. Negotiation and compromise requires a willingness to accept less than 100 percent of what you want.
+The President believes that the entitlement reforms he put forward to Speaker of the House John Boehner late last year, which are embodied in this budget proposal which you're referring to right now, are acceptable within the context of a broader budget that invests in the economy, that protects and assists the middle class, that protects seniors and allows us to grow and create jobs. The alternative approach is not acceptable. It's not acceptable to the President, and it is not acceptable to the American people.
+We see these ideological documents put forward and it certainly makes you wonder whether there is a genuine effort underway -- at least on the House Republican side -- to try to find something that can be agreed to by everybody in Washington. Because compromise is not saying, I'm going to wait here until you come to me 100 percent. It's not going to happen. The President will not voucherize Medicare. He will not eviscerate programs that invest in infrastructure and education. He will not slash investments in research and development, and technologies that will help us grow in the future.
+He does believe that if we take a balanced approach, we can achieve the kind of deficit reduction that's necessary to stabilize our debt and that will allow us to continue to grow and create jobs.
+Q But when John McCain floated the idea of raising the retirement age and doing exactly this on cost-of-living increases in 2008, the President went before the AARP and he said, point blank, "Let me be clear: I will not do either." So what's changed? Why did he switch his position?
+MR. CARNEY: Well, first of all, he is not proposing to raise the retirement age, as you know.
+Q But he is proposing to do this cost-of-living --
+MR. CARNEY: And, secondly, as I think I've said a couple of times now, this is not the President's ideal budget proposal. It is a budget proposal that represents a good-faith compromise position that reflects the offer he made to the Speaker of the House that was widely seen as a compromise good-faith effort that met Republicans halfway, and that reflected the people's will that we address these challenges in a way that's balanced and fair -- and that we don't go down the road that has been rejected by the public of doing great harm to programs that are fundamental to the well-being of our senior citizens and do great harm to programs that assist families who have kids with disabilities or that assist middle-class Americans trying to get by. That's just not acceptable to this President. And it's not acceptable to the American people.
+Q Just a technical question -- the $1.8 trillion you're claiming here, you would replace the $1.2 trillion in sequester cuts. So isn't it true that the actual deficit -- the added deficit reduction here is $600 billion?
+MR. CARNEY: Well, that's a complete false equivalence. The $1.2 trillion was part of the Budget Control Act that was part of the overall goal of achieving $4 trillion. Absolutely, we would replace the sequester. And in addition to replacing the sequester, we would have an additional $600 billion in deficit reduction bringing us to $4.3 trillion overall over a decade, which exceeds the goal set by bipartisan commissions. That's the fact.
+Q Okay. And then, just one thing on the President's salary --
+MR. CARNEY: I mean, if you're suggesting -- well, anyway.
+Q Well, it's just that the current --
+MR. CARNEY: I mean, let's review the sequester. The sequester is bad policy -- designed to be bad policy with negative impacts across --
+Q But it is $1.2 trillion in deficit reduction.
+MR. CARNEY: No question. But it's not the kind of deficit reduction Republicans said they wanted until they changed positions and called it a home run. It doesn’t achieve any of the reforms that Republicans say they want -- no tax reform, no entitlement reforms. It's not -- it doesn’t do any long, long-term benefit to our economy.
+What the President is proposing is that we eliminate not just the sequester through deficit reduction that's balanced, but go beyond that. And that’s the right --
+Q Six hundred billion dollars --
+MR. CARNEY: -- to $4.3 trillion. I think you're changing the bar here. I think $4.3 trillion is recognized by everyone as exceeding $4 trillion, even at the level of math that I got to in college.
+Q And just a quick thing on the President's salary give-back. We now heard he is going to give back 5 percent of his salary -- the Attorney General, Secretaries of Defense, Homeland Security, State -- et cetera. What about the Vice President?
+MR. CARNEY: Well, I would, first of all, refer you to the Vice President's office. Secondly, I would say that the President made clear when the sequester was about to kick in that he wanted to do this and asked his staff to work on a way for him to do it. But we've made clear that this is a decision that everybody can make for themselves, whether they're Cabinet secretaries, other members of the administration -- or members of Congress could also make that choice.
+Q Would you expect the Vice President though to follow suit?
+MR. CARNEY: Again, we're not setting expectations. But I think everyone, including members of Congress, can make a decision as they see fit.
+Brianna, did you have anything? You're looking pensive.
+Q No, I'm waiting.
+MR. CARNEY: Major.
+Q I'll get to the budget in a second. How discouraged is the White House today about the jobs numbers report?
+MR. CARNEY: Well, I think you saw Alan Krueger and others discuss this. We're disappointed that they're not better. But the fact is, this is now 37 months -- more than three years straight -- of private-sector job creation, almost 6.5 million jobs created thanks to the policies that averted a depression and set the economy back on a trajectory of growth and job creation.
+But as we have said consistently -- and we have said when job numbers exceed expectations and when they come in below expectations -- we have more work to do. This President is not ever going to be satisfied until everybody who is looking for a job can get a job. And that's why we have to have economic policies that encourage growth, that reduce our deficit in a fair way -- in a way that allows us to continue to invest in the economy. Because we have work to do here. We can put teachers and construction workers back to work with the proposals that the President has put forward and Republicans have rejected.
+We can put -- the President has had a proposal for families to refinance their homes that would be $3,000 on average in the pockets of middle-class families. We should move on that.
+Q How much does this administration believe the jobs report reflects either sequestration anxiety or actual economic impact?
+MR. CARNEY: Well, I would point you to our experts and others. I think that it is certainly a part of the equation in our estimation. There's no question that anticipation of sequester as well as the fact of sequester -- as outside economists have said -- would have a negative impact on job growth and economic growth. The exact measurement of that with regard to this report I think economists will probably make in the future. Our focus is on making sure that we don't unduly and unnecessarily inflict harm on the economy.
+Q Is this a warning --
+MR. CARNEY: And the sequester is one of those instances where a decision was made by Republicans in Congress, rather than asking wealthier folks to give up --
+Q Are you saying this jobs report is a warning sign in that context?
+MR. CARNEY: I think that outside economists have predicted that the sequester, if it is not undone, will cost I think roughly a half a percentage point in economic growth, in GDP, and something like 750,000 jobs. That would be bad. That is unnecessary. That would be the result of an unnecessary choice made by Republicans in the House who thought that that was a better outcome -- or Republicans in both Houses -- that that was a better outcome for the American people -- reduced economic growth, reduced job creation -- than asking folks to give up special tax breaks -- corporate jet owners, wealthy individuals who get special deductions.
+These are proposals, again, that the Speaker of the House said he supported in December, and now he claims are off the table in March and April.
+Q A follow-up on Jim’s question -- you do not and the White House does not dispute that if the chained CPI were put in -- to be put into effect, it would raise taxes on middle-income Americans?
+MR. CARNEY: The chained CPI, which is a technical adjustment to how we measure the consumer price index --
+Q But its practical effect would be --
+MR. CARNEY: Again --
+Q -- to raise taxes on --
+MR. CARNEY: I’m not disputing that, but I’m saying that it is not the President’s ideal policy. It is in a letter from the Senate Minority Leader requesting that it be part of a negotiation deal.
+Q All right, I'm just saying you don’t disagree, that those things happen?
+MR. CARNEY: Right, but Major, and --
+Q -- a tax increase?
+MR. CARNEY: -- let’s be clear, as we’ve said all along, that the offer was on the table. The President made that offer because he was hopeful that we would see commensurate willingness to compromise from Republicans. Unfortunately, we haven’t seen that.
+The President is engaged in conversations with Republicans in the Senate in particular but also in the House in an effort to find common ground, to see if there is a willingness to embrace the idea that we can reduce our deficits in a balanced way and continue to invest in our economy and middle-class families. And if there is, then we’ll be able to get something done.
+Q And to critics who would say to this President, looking at this proposal, this is the last and possibly worst time -- from their point of view -- to raise taxes on the middle class, inflict benefit cuts on elderly on fixed incomes, even in the pursuit of deficit reduction, the President would say what?
+MR. CARNEY: The President would say that as part of a balanced approach that asks the wealthy and well-to-do and well-connected to contribute their fair share through tax reform, elimination of special tax breaks that average folks don’t get, that we can also include entitlement reforms that allow us to achieve deficit reduction in a balanced way and allow us to continue to invest in our economy in ways that will help it grow and create jobs.
+As I think I’ve said, this is not the President’s ideal approach, but he believes that we were sent here to get things done on behalf of the American people and the American economy. He doesn’t believe that it is the right approach to take to write and pass ideological documents that purport to balance the budget in 10 years when they’re just a bunch of top lines with a zero at the end and not a credible economist out there believes that’s achieved, or that the policies contained within make sense economically. Well, that doesn’t do anybody any good. And it certainly doesn’t bring us closer to a deal and compromise.
+There are Republicans, however, in Washington, this President believes, who are open to the idea that we can do this in a balanced way; that everybody has to move off of their starting position and accept some compromise. And that means the President being willing to do some limited entitlement reforms that continue to protect our seniors and strengthen the programs. And it means Republicans being willing to accept what Speaker of the House John Boehner said was good policy three months ago -- not an outlandish request.
+Q Last question. Will the President fight as hard for chained CPI as he is gun control and immigration?
+MR. CARNEY: The President will fight for the principles in his budget, and the President will fight for a balanced --
+Q As visibly? As repetitively?
+MR. CARNEY: These are two different policy proposals. The President believes that we ought to deal with our deficit challenges in a balanced way, and he’s looking for partners on the other side of the aisle who agree with him.
+Yes, sir. Okay, Ed.
+Q Thank you, sir. I see in there you have your list, including nondefense discretionary spending cuts. I believe it says $100 billion?
+MR. CARNEY: That’s correct.
+Q Can you tell us -- so when will we see a list of those spending cuts?
+MR. CARNEY: On Wednesday.
+Q Is that when the budget -- so it will have -- line by line it will say --
+MR. CARNEY: I can promise everyone here that this President’s budget will be so much more detailed than anything you’ve seen from the Republicans, it will blow your mind.
+Q Wow. (Laughter.) That’s exciting. Thank you.
+MR. CARNEY: That’s your question? (Laughter.)
+Q No, I’ve got more, I’ve got more. Jim asked you at the beginning about Republican support for this and what’s changed since December. What about Democratic support? You mentioned limiting tax deductions to 28 percent. The President has proposed that before. He proposed it for health care -- rejected by Democrats as well as Republicans. He proposed it as a way to pay for the American Jobs Act, as I recall, in 2011 -- Democrats like Max Baucus said that’s going to hurt charitable contributions, et cetera. It was rejected. So how can you get Democrats to support that now when they’ve rejected it before?
+MR. CARNEY: If the Republicans are willing to give up --
+Q But these are Democrat --
+MR. CARNEY: Hold on, and I’ll get to this.
+Q Okay.
+MR. CARNEY: It’s a compound sentence. If the Republicans are willing to move off of their position -- or at least the ones that leaders have staked out -- that the wealthy should not pay another dime in the supposedly all-in American effort to reduce our deficit, the President is convinced that he can lead Democrats to a compromise solution. That was the case in December. It was the case in the summer of 2011. It has been the case all along.
+Unfortunately, what we have seen is the opposite of that, which is an inability of leaders of the Republican Party to bring their rank-and-file lawmakers behind compromise solutions. Instead, rump groups within conferences have dictated to leaders what the no-compromise positions should be and ought to be taken, and that results obviously in nothing but bad news, generally, for the American people.
+So yes, the President believes that these are not all ideal choices that he would make or Democrats would make. But as is true with Senator Murray’s budget and is true with the President’s budget, this represents a balanced approach to our deficit challenges. And the President believes that if there is a commensurate willingness by Republicans to compromise, as opposed to just pursue ideological purity, we can actually get something done for the American people.
+Q One other on Democrats. To be clear, on chained CPI, most people focus on cuts to Social Security and then also, mentioned by Major, changes to taxes. But as the President and you have talked about before, it affects a whole range of federal programs, so I want to clarify: Democrats like Bernie Sanders today are saying this will mean cuts to veterans’ benefits as well. Bernie Sanders claims $2,000 or $3,000 a year for some veterans. Is that true?
+MR. CARNEY: Well, I would --
+Q Will it affect those benefits? I know you might not have the number, but will it affect veterans?
+MR. CARNEY: Again, I think that the application of this particular proposal exempts certain categories of vulnerable Americans. That has been the case, was the case when the President proposed it last year, and will be the case in the President’s budget. The details I will have to ask you to wait for until Wednesday. I want to give you something to cover next week, not just today.
+Q But so what -- is that a yes or no on veterans? I don’t --
+MR. CARNEY: Well, again, I don’t --
+Q Because veterans are out there wondering.
+MR. CARNEY: -- have the specific interest -- I mean the specific, itemized breakdowns of how this works. I would wait for the budget for those, or ask you to wait for the budget for those.
+What I will say is that this is not the President’s idealized budget. It is not what he would do if he were king or if only people who supported his proposals were in Congress. It is what he believes is a fair and balanced approach to our deficit challenges, one that allows us to invest, that protects seniors, that helps secure the middle class and give ladders to those who want to get into the middle class. And very importantly, it provides investments in areas of the economy that will allow us to grow, not just next year and the year after, but 10 years from now and 20 years from now.
+Luke. Sorry, Mike then Luke.
+Q So can I just shift you to the FDA morning-after pill decision today? Does the administration intend to appeal that decision? And regardless of the legal question, if that’s not something you’re prepared to answer, is it still the policy position of the administration that the pill should be only available to folks -- to women 16 and older?
+MR. CARNEY: I’ll say a couple of things. On the legal issue, I would refer you to the Department of Justice, which is currently reviewing the ruling.
+On the second part of the question, Secretary Sebelius made this decision. The President supported that decision after she made it, and I think said so in the briefing room when he was asked about it. And he supports that decision today. He believes it was the right common-sense approach to this issue. Beyond that, obviously, on the legal issue, I would refer you to the Department of Justice.
+Q But there's no sense in which something has changed in terms of the substance of the issue, in that the judge made some pretty sort of arguments that go beyond just legal arguments? And about the sort of fairness question, there's nothing -- are you guys at all reviewing the policy position as -- to see whether something should have changed?
+MR. CARNEY: Well, again, I would -- Secretary Sebelius made this decision, so I would refer you to her and her office on the policy specifics. But when the Secretary made this decision, the President supported it. He believed it was a common-sense approach when it comes to Plan B and its availability over the counter to girls under, I believe, 17, and he believed that was a sensible approach. And I believe, again, this is under review by the Department of Justice. And I expect they will be making a decision about options --
+Q But he still thinks that it's a sensible approach?
+MR. CARNEY: His position has not changed.
+Sorry, I think Luke and then Briana.
+Q To follow up on Major's point --
+MR. CARNEY: Welcome, by the way.
+Q Thank you very much. Opening day here. To follow up on Major's point about the sequester -- today, Senator Reid said, "Today's employment report again shows that our economy cannot afford more self-inflicted setbacks like the sequester. We need to focus on growth, not austerity." Do you agree with Senator Reid on that?
+MR. CARNEY: Word for word.
+Q Is this poor jobs numbers a direct result of the sequester?
+MR. CARNEY: Well, I think the point he made is that we cannot afford more self-inflicted -- tell me the whole quote there.
+Q "Self-inflicted setbacks like the sequester."
+MR. CARNEY: "Self-inflicted setbacks like the sequester." You would have to turn in your economics degree if you did not concur with the universally-held opinion that sequester would result in reduction in GDP and reduction in job growth. That is a broadly accepted fact. And it was wholly unnecessary.
+I don’t think anybody believes that we should be embracing economic policies that cause our economy to grow less fast and create fewer jobs. I'm going to say 535 lawmakers up on Capitol Hill agree with the idea that we should embrace economic policies that do the opposite of that.
+So the sequester is bad policy. It was an unnecessary setback. It was self-inflicted. We believe -- again, I'm just pointing to assessments, early assessments made by the Council of Economic Advisers and Dr. Krueger -- that sequester had an impact on this, but it's hard to assess exactly how much. Obviously there are other factors at play here.
+Broadly, whether it was 200,000, 95,000, I think, private sector jobs, or 50,000, our answer is always going to be the same, which is that we have more work to do. And we have to embrace and implement policies that help our economy grow and help it create jobs. And that’s why the President is putting forward the budget that he'll put forward on Wednesday. And that is the spirit and objective that has guided all of his budget proposals throughout the years of his presidency.
+Q So it's fair to say that the White House agrees that today we are, as a country, are feeling the effects of sequester in this jobs report?
+MR. CARNEY: Well, I think, again, to a degree that is hard to measure early on, the answer is yes. And I think that we are feeling the negative effects of the sequester in other ways -- the kids who aren't in Head Start this week are feeling it. Their parents are feeling it. Folks who have been furloughed or who worked in air traffic control towers that have been closed. I mean, we see -- there has been a lot of focus in Washington on White House tours, which was an unfortunate result of implementation of the sequester, but if you look at the regional coverage of the impacts of sequester, it focuses on real people and how they have been hurt by this unnecessary policy and the decision -- the unfortunate decision by Republicans to not just allow it to happen, but to embrace it as a political victory and a homerun.
+Q Lastly, on the chained CPI idea, I spoke to some folks on the Hill on the Democratic side that were uneasy about this because it says you’re giving Speaker Boehner and the House Republicans too much leverage; that by putting chained CPI out on the table right now, the Republicans will ask for that in any type of deal moving forward saying that it was in the President’s own budget, that he believed in it so much to put it in his own budget. Why give this away right now in April --
+MR. CARNEY: We’re not giving anything away.
+Q -- ahead of the debt limit fight coming up in the summer and a lot of other important things?
+MR. CARNEY: What the President is putting forward is a budget -- not a single policy proposal, not -- it is not line items that he is giving away or taking. It is a budget proposal that is broad and comprehensive that represents a balanced approach to helping the economy grow, reducing our deficit, making the middle class more secure and providing opportunity to those who aspire to the middle class. And that’s the approach we should take.
+If the charge is that he should not be serious about trying to find common ground, then he disagrees with that. He believes that we should. But make no mistake -- he is not going to embrace Republican proposals that suggest we should just ask seniors -- just make entitlements reform changes, and not take a balanced approach to deficit reduction -- basically tell seniors, it’s all on you now, it’s all on middle-class families, families with kids who have disabilities, it’s all on those who benefit from education-assistance programs or others, and folks who benefit hugely from the tax code, wealthy individuals who pay a far lower effective tax rate than I’m sure most people in this room and certainly school teachers and police officers and bus drivers, factory workers, that they should be asked to do nothing. That’s never going to be the President’s position.
+Q Jay?
+MR. CARNEY: Briana, you’re --
+Q Jay, I have a non-budget question. (Laughter.)
+MR. CARNEY: Come on, you enjoyed that. (Laughter.)
+Q Let's see if you enjoy this one. President Obama yesterday called California Attorney General Kamala Harris, “by far the best-looking attorney general.” It created quite a buzz and an uproar. Some say it highlights what they see as a troubling pattern of a woman’s success being linked to her appearance, and that it’s unseemly for the President of the United States to say that. How has he reflected on his comments since making them? And has he called Harris?
+MR. CARNEY: The President did speak with Attorney General Harris last night after he came back from his trip. And he called her to apologize for the distraction created by his comments. And they are old friends and good friends, and he did not want in any way to diminish the Attorney General’s professional accomplishments and her capabilities. And I would note that he called her, in those same comments, “brilliant,” “dedicated” and “tough,” and she is all those things.
+She has been a remarkably effective leader as Attorney General. She is a key player in the mortgage settlement which will help many, many middle-class families who are struggling to deal with the mortgage situation in this country. And he believes and fully recognizes that the challenges women -- or he fully recognizes the challenge women continue to face in the workplace and that they should not be judged based on appearance.
+Q He felt like he messed up is what he said?
+MR. CARNEY: Look, I think I made clear he apologized for creating this distraction and believes very strongly that Attorney General Harris is an excellent Attorney General and that she’s done great work and she’s dedicated and tough and brilliant.
+Q And on the FDA -- the judge, Edward Korman, said that the decisions of the Secretary were arbitrary, capricious and unreasonable. And, I mean, that was his opinion, and the President obviously supported Secretary Sebelius’s decision on this. What’s your reaction to that?
+MR. CARNEY: Well, I would -- as a legal matter and a response to the decision by the court I would refer you to the Department of Justice, which will review this and make decisions about appeal. I think it’s important to remember, however, that the Secretary’s decision in this matter was not about whether Plan B would be available to women, but rather whether it should be available over the counter to girls of all ages without consenting -- without consulting with a health care professional. And Secretary Sebelius made the decision she made, which the President viewed as a very common-sense decision, one that he as a parent and other parents, he believed, would agree was a common-sense solution.
+But beyond that, I think that I’ll leave it to the Justice Department to make --
+Q Would he disagree that it was arbitrary?
+MR. CARNEY: Yes.
+Q This judgment?
+MR. CARNEY: Yes. He supported the Secretary’s decision.
+Mark.
+Q Jay, just to follow up on Harris -- twice you said that the President apologized for the distraction. Does he not think that the remark was sexist?
+MR. CARNEY: Well, he apologized for the remark. And they’re old friends. And, look, I mean, the President --
+Q So he acknowledges it was inappropriate?
+MR. CARNEY: -- has known her for a long time and he apologized for it. And he certainly regretted that it caused the distraction that Briana referred to, and --
+Q You seem to make a distinction.
+MR. CARNEY: No. I’m making clear, I think, that he apologized for it and believes that she is a superb Attorney General for the state of California, has done an excellent job in all areas, and especially on this mortgage settlement issue.
+MR. CARNEY: Scott.
+Q Jay, are you saying that the Plan B decision was common sense because it’s a contraceptive? Because the judge points out that you can get Tylenol at any age, and that’s more dangerous.
+MR. CARNEY: Well, again, I think the President spoke at length about this from this very podium. His views are best expressed by him. And I could read them to you but they’re available online, and those are his views. And he believed it was a common-sense decision. I think it’s important to remember that what Secretary Sebelius said and decided is that we do not have enough evidence to show that all those who could use this medicine, Plan B, can understand the label and use the product appropriately.
+So I would refer you to Secretary Sebelius about the policy deliberations that went into her decision. I can tell you that the President, as he said from this podium at the time, supported that decision and believes it was the right decision.
+Q But is that because it’s a contraceptive, not because it’s a dangerous product?
+MR. CARNEY: Well, I think that as the statement I just said makes clear, it could be dangerous if misused. And the President felt that it was the right thing -- the right decision to make.
+Roger.
+Q In the budget statement this morning, there was a reference to one of the Presidents investments, about kindergarten and the plan that he’s advancing. And it said it would be paid for by increased taxes on tobacco. How much of a tax is required to offset that cost?
+MR. CARNEY: Well, I don’t have specifics for you that will be available on Wednesday. As I said, if I gave all the specifics now, you wouldn’t have anything to write about or ask me about on Wednesday. So we’ll wait for the specifics there. The President believes that universal pre-K is an excellent investment to make in our future. And I think it is widely recognized by experts to be a very sensible policy approach that will pay dividends and benefits well in excess of the costs if we can get it done. And that’s correct that his proposal, his budget will -- all of the investments that are in his budget will be paid for entirely within his budget.
+And this particular investment will be paid for by a cigarette tax, which he believes is the right way to go in this case. Getting all of our kids into pre-K would have enormous positive impacts for those kids, for their families, and for those kids’ futures in the education system and beyond that in the workforce in the years to come.
+Q Okay. And also, on corporate rate tax cuts -- there was talk in the campaign about lowering them at some point. Should we expect that in the budget next Wednesday? Some master plan or proposal?
+MR. CARNEY: I think we’ve shown --
+Q Or are you going to wait until afterward?
+MR. CARNEY: We’ve shown a lot on what’s in the budget thus far. And I think that we’ll wait until Wednesday to provide more details about what’s in it.
+Q Okay. And if there are details on this subject --
+MR. CARNEY: There will be. Well --
+Q -- will they show a specific --
+MR. CARNEY: Let me finish the sentence: There will be more details in the budget, yes.
+Q Okay. And will it show how it’s paid for?
+MR. CARNEY: Again, I would ask you to wait, but I can say that everything in the budget that the President proposes in terms of investments and changes will be paid for.
+Donovan.
+Q Thanks, Jay. Just going back again on the budget. I think some of the criticism from the left, from Democrats, is by his including the CPI and some of these other things that this becomes a starting point; that he’s essentially already given it away. Why did he choose to do that now versus -- you’ve said before that the President’s budget reflects his priorities, and now you’re saying it’s not ideal. Why are you guys taking this strategy?
+MR. CARNEY: Well, the budget reflects his priorities within a budget world that’s not ideal, within a budget decision-making process that’s not ideal, obviously, as he sees it. It requires compromise and negotiation and a willingness to accept that you won't get 100 percent of what you want.
+I can tell you this is not -- as I said before, he is not negotiating away items of his budget. He is presenting a comprehensive proposal that's balanced in nature, that asks the wealthiest Americans and those who get special deals through our tax code to give up those tax breaks in the name of further deficit reduction. And he also includes entitlement reforms that he believes can be achieved as part of a balanced package that will protect our seniors and allow us to reduce our deficit in a way that also allows the economy to grow and create jobs, to continue to do that, and put us on a foundation economically that will allow us to grow well into the future.
+There's no question that it's not what we would do if he could just pass a budget himself or that Democrats could do if they got to dictate everything that would come out of it. But we have made clear since the President made this offer to Speaker Boehner -- you have asked me, others have asked me in this room many times about that offer -- and I've been clear that the offer remains on the table. And I think it stands in stark contrast to the intransigence and the embrace of ideological purity that the House Republican budget represents.
+Look at the difference. We've been having this discussion now for several years about how do we get our deficits under control and how do we do it in a way as we emerge from the Great Recession that keeps the economy growing -- and hopefully growing faster -- and keeps it creating jobs? And the President has always taken an approach that says we have to do this in a balanced way. The well-off and well-connected have to contribute as well.
+His proposals represent that spirit of compromise -- a spirit of compromise that does not forsake his principles, but that recognizes he cannot get everything he wants. And what he asks, and what I think the American people are asking is that Republicans accept that they don't get everything they want, that they embrace proposals that they said were the right policy in December because they're the right thing to do.
+Whether you're a corporate jet owner or a company -- an oil and gas company that benefits from century-old tax provisions, tax breaks that we need to do away with or you get to use the tax code and the exemptions available in it to reduce your tax burden if you're a millionaire or billionaire -- we can’t afford that anymore. Because the alternative -- I mean, it's a great exercise. The alternative to doing it in a balanced way is the way that we've seen from Republicans, which is middle-class Americans taking a massive hit, senior citizens taking a huge hit -- investments that help our economy grow in the future eviscerated. And then, those same people who should be asked to give a little bit more instead getting showered with tax cuts.
+I don't know what debate some people missed last year. But this was debated and discussed, and I think the American people were pretty clear about the direction they didn't want to take.
+Q North Korea follow-up?
+MR. CARNEY: North Korea follow-up, sure.
+Q Are there any plans to evacuate the American embassy or evacuate Americans from South Korea?
+MR. CARNEY: No. I would refer you to the State Department, but no.
+Q Would you let us know if there are changes?
+MR. CARNEY: I think what I said about North Korea and its provocative actions and its bellicose rhetoric reflects our concern about this path that the North Koreans are on, and the fact that this is a familiar path and a familiar pattern that we're seeing out of the North Korean regime. And we're taking all necessary precautions, and they have been reported on, and we will continue to do that. We're consulting closely with our allies in Tokyo and Seoul.
+We're working constructively with the Russians and the Chinese to try to get them -- in particular, the Chinese -- to use their influence with the North Koreans to persuade them to change their behavior and to instead travel the path that will allow them to rejoin the community of nations, allow them to assist their own citizens, feed their own people and allow their economy to grow instead of atrophy. That's our position.
+Q -- warn Americans and foreigners to get their people out?
+MR. CARNEY: Well, look, I think the leadership in North Korea says a lot of things, and it tends to be bellicose and provocative of late. And none of those statements or actions are helpful to the cause of peace and stability in the region.
+Q On Syria, Jay?
+MR. CARNEY: Yes, Syria.
+Q Thank you. Just follow up the previous question. Is the leaders -- neighbor's leaders are coming -- Turkey and Jordan and Qatar. And as the latest numbers by the U.N., close to 4 million displaced people inside and 1.2 million outside. So a quarter of Syria, if you put the U.S. numbers, about 80 million people right now displaced. Are you going to be able to use this opportunity to talk to these leaders, bring a new way, a new step? Or do you have any kind of new plan? Because apparently diplomacy is not working and whatever has been done for the last two years is also not working. Do you have anything new we are going to be able to see?
+MR. CARNEY: The President will, in these meetings, discuss the tragic situation in Syria, there is no question, as well as other topics.
+The United States, as you know, is the single-largest donor of humanitarian aid to the Syrian people, who have been tragically affected by President Assad’s brutal repression and murder of his own people, refugees, displaced Syrians. And we will continue to work with our partners in the effort to provide assistance to the Syrian people. We also will continue the effort to -- in support of the Syrian opposition. We have provided substantial nonlethal aid to the opposition. We are working with our partners in helping the opposition organize itself, and we’ll continue to do that.
+So I don’t want to preview these discussions, I think I should make clear that, as I did earlier, these meetings the President will be having with leaders from the region will focus on a number of issues, including, of course, Syria, which is very important and which has -- on which the President is greatly focused.
+This is a problem and a situation that we are constantly working with our partners on, and our policies are constantly being reviewed to find -- to see if we can find ways to provide more humanitarian assistance and more assistant to the opposition, and we will continue to do that.
+Q Thanks, Jay.
+MR. CARNEY: I’ll do one more.
+Yes.
+Q Thank you, Jay. There’s a big judiciary hearing coming up, obviously, on Wednesday. You talked from the lectern before about the importance to the courts in having those holes filled. But from the President’s perspective, how important is it to get those holes filled to get his agenda moved forward, particularly on that D.C. court?
+MR. CARNEY: Well, it’s not a question about getting his agenda moved forward. It’s a question of a fair process where, as I said the other day I think in a prolonged and brilliant topper to the briefing, I made clear our unhappiness with the pace of consideration of nominees to the Judiciary. The delays are something like triple or quadruple the rate that were in effect under President George W. Bush. And while we have seen some progress and some nominees confirmed of late, we still have far too many vacancies and on a number of courts, I mean, across the country.
+And so the President hopes and urges the Senate -- hopes that and urges the Senate to move forward with consideration of nominees. I mean, the problem that we’ve seen is you’ve had a number of nominees who have been confirmed unanimously out of committee, and then who are held up, month after month after month, and then once the block has been lifted are voted out overwhelmingly, confirmed overwhelmingly.
+So normal Americans who are out there wondering how Washington works and why it seems dysfunctional in their view could look at that process and scratch their heads, and say, wait, if there wasn’t a problem, if the votes were there from both sides, from both parties, why did it take 134 days? And, unfortunately, the answer is politics. It’s using this process, the confirmation process, to attempt to achieve other aims, which is doing harm to our Judiciary.
+Q I talked to Senator Grassley the other day, and he said the problem, at least from his perspective, is that the nominations have been slow getting to them.
+MR. CARNEY: Well, I think that would be the case if there -- how does that explain the -- I think it’s -- I don’t have the paper with me now -- I think it’s 134-day average wait for nominees compared to something like 30-odd days under President George W. Bush. These are existent, not hypothetical nominees that have been waiting far too long for proper consideration by the Senate.
+Thanks, everybody.
+Q Week ahead?
+MR. CARNEY: One day I’ll remember.
+Week ahead. On Monday, the President will travel to the University of Hartford where he will continue asking the American people to join him in calling on Congress to pass common-sense measures to reduce gun violence.
+On Tuesday, as part of their “In Performance at the White House” series, the President and First Lady will invite music legends and contemporary major artists to the White House for a celebration of Memphis soul music.
+On Wednesday, the President will deliver a statement on his budget at the White House. In the evening, the President will meet with 12 Republican senators for dinner.
+On Thursday, the President will award Chaplain (Captain) Emil J. Kapaun, U.S. Army, the Medal of Honor for conspicuous gallantry at the White House. Chaplain (Captain) Kapaun will receive the Medal of Honor posthumously for his extraordinary heroism while serving with the 3rd Battalion, 8th Cavalry Regiment, 1st Cavalry Division, during combat operations against an armed enemy at Unsan, Korea, and as a prisoner of war from November 1st through 2nd, 1950. The First Lady will also attend this event.
+On Friday, the President will welcome the United States Naval Academy football team to the White House to present them with the 2012 Commander-in-Chief’s Trophy. And that is your week ahead.
+Thanks, all.
+END
- - - - - - -
+CONTINUANCE OF ADVISORY COUNCIL
+By the authority vested in me as President by the Constitution and the laws of the United States of America, and consistent with the provisions of the Federal Advisory Committee Act, as amended (5 U.S.C. App.), it is hereby ordered as follows:
+Section 1. Continuing the President's Advisory Council on Faith-Based and Neighborhood Partnerships. The President's Advisory Council on Faith-Based and Neighborhood Partnerships, as set forth under the provisions of Executive Order 13498 of February 5, 2009, and reestablished by section 5 of Executive Order 13569 of April 5, 2011, is hereby extended and shall terminate 2 years from the date of this order unless further extended by the President.
+Sec. 2. General Provisions. (a) Nothing in this order shall be construed to impair or otherwise affect:
+(1) the authority granted by law to an executive department, agency, or the head thereof; or
+(2) the functions of the Director of the Office of Management and Budget relating to budgetary, administrative, or legislative proposals.
+(b) This order shall be implemented consistent with applicable law and subject to the availability of appropriations.
+(c) This order is not intended to, and does not, create any right or benefit, substantive or procedural, enforceable at law or in equity by any party against the United States, its departments, agencies, or entities, its officers, employees, or agents, or any other person.
+BARACK OBAMA
+]]>- - - - - - -
+ADJUSTMENTS OF CERTAIN RATES OF PAY
+By the authority vested in me as President by the Constitution and the laws of the United States of America, including the Continuing Appropriations and Surface Transportation Extensions Act, 2011 (Public Law 111-322), as extended by the Consolidated and Further Continuing Appropriations Act, 2013 (Public Law 113-6), which requires certain pay schedules for civilian Federal employees to remain at 2010 levels through 2013, it is hereby ordered as follows:
+Section 1. Statutory Pay Systems. Pursuant to the Consolidated and Further Continuing Appropriations Act, 2013 (Public Law 113-6), the rates of basic pay or salaries of the statutory pay systems (as defined in 5 U.S.C. 5302(1)) are set forth on the schedules attached hereto and made a part hereof:
+(a) The General Schedule (5 U.S.C. 5332(a)) at Schedule 1;
+(b) The Foreign Service Schedule (22 U.S.C. 3963) at Schedule 2; and
+(c) The schedules for the Veterans Health Administration of the Department of Veterans Affairs (38 U.S.C. 7306, 7404; section 301(a) of Public Law 102-40) at Schedule 3.
+Sec. 2. Senior Executive Service. The ranges of rates of basic pay for senior executives in the Senior Executive Service, as established pursuant to 5 U.S.C. 5382, are set forth on Schedule 4 attached hereto and made a part hereof.
+Sec. 3. Certain Executive, Legislative, and Judicial Salaries. The rates of basic pay or salaries for the following offices and positions are set forth on the schedules attached hereto and made a part hereof:
+(a) The Executive Schedule (5 U.S.C. 5312-5318) at Schedule 5;
+(b) The Vice President (3 U.S.C. 104) and the Congress (2 U.S.C. 31) at Schedule 6; and
+(c) Justices and judges (28 U.S.C. 5, 44(d), 135, 252, and 461(a), and section 140 of Public Law 97-92) at Schedule
+Sec. 4. Uniformed Services. The rates of monthly basic pay (37 U.S.C. 203(a)) for members of the uniformed services, as adjusted under 37 U.S.C. 1009, and the rate of monthly cadet or midshipman pay (37 U.S.C. 203(c)) are set forth on Schedule 8 attached hereto and made a part hereof.
+Sec. 5. Locality-Based Comparability Payments. (a) Pursuant to sections 5304 and 5304a of title 5, United States Code, and the Continuing Appropriations and Surface Transportation Extensions Act, 2011 (Public Law 111-322), as extended by the Consolidated and Further Continuing Appropriations Act, 2013 (Public Law 113-6), locality-based comparability payments shall be paid in accordance with Schedule 9 attached hereto and made a part hereof.
+(b) The Director of the Office of Personnel Management shall take such actions as may be necessary to implement these payments and to publish appropriate notice of such payments in the Federal Register.
+Sec. 6. Administrative Law Judges. Pursuant to section 5372 of title 5, United States Code, the rates of basic pay for administrative law judges are set forth on Schedule 10 attached hereto and made a part hereof.
+Sec. 7. Effective Dates. Schedule 8 is effective January 1, 2013. The other schedules contained herein are effective on the first day of the first applicable pay period beginning on or after January 1, 2013.
+Sec. 8. Prior Order Superseded. Executive Order 13635 of December 27, 2012, is superseded as of the effective dates specified in section 7 of this order.
+BARACK OBAMA
+]]>SUBJECT: Federal Employee Pay Schedules and Rates That Are Set by Administrative Discretion
+Section 1112 of the Consolidated and Further Continuing Appropriations Act, 2013 (Public Law 113-6), reflects the Congress's decision to continue to deny statutory adjustments to any pay systems or pay schedules covering executive branch employees. In light of the Congress's action, I am instructing heads of executive departments and agencies to continue through December 31, 2013, to adhere to the policy set forth in my memoranda of December 22, 2010, and December 21, 2012, regarding general increases in pay schedules and employees' rates of pay that might otherwise take effect as a result of the exercise of administrative discretion.
+This memorandum shall be carried out to the extent permitted by law and consistent with executive departments' and agencies' legal authorities. This memorandum is not intended to, and does not, create any right or benefit, substantive or procedural, enforceable at law or in equity by any party against the United States, its departments, agencies, or entities, its officers, employees, or agents, or any other person.
+The Director of the Office of Personnel Management shall issue any necessary guidance on implementing this memorandum, and is also hereby authorized and directed to publish this memorandum in the Federal Register.
+BARACK OBAMA
+]]>SUBJECT: Delegation of Functions Under Sections 404 and 406 of Public Law 112-208
+By the authority vested in me as President by the Constitution and the laws of the United States of America, including section 301 of title 3, United States Code, I hereby delegate the functions conferred upon the President by sections 404 and 406 of Public Law 112-208 as follows:
+I hereby delegate to the Secretary of the Treasury, in consultation with the Secretary of State, the functions and authorities set forth in:
+• subsections 404(a), 404(b), and 404(d), with respect to the determinations provided for therein;
+ • subsection 404(c)(3);
+ • subsection 404(c)(4), consistent with subsection 404(f); and
+ • subsection 406(a)(1).
+ I hereby delegate to the Secretary of State, in consultation with the Secretary of the Treasury, the functions and authorities set forth in:
+ • subsections 404(a), 404(b), and 404(d), with respect to the submission of the list, updates, and reports described in those respective subsections;
+ • subsection 404(e); and subsections 404(c)(2) and 406(a)(2).
The Secretary of State is authorized and directed to publish this memorandum in the Federal Register.
+BARACK OBAMA
+]]>Effectively building security capacity requires multi-year investments, though such up-front costs are relatively small when compared to the larger political, economic, and societal costs in the event that local institutions flounder and instability ensues. While security sector assistance can yield significant benefits, the United States cannot build capacity in all countries. It is essential that we are selective and focus our targeted assistance where it can be effective and is in line with our broader foreign policy and national security objectives. Investments of such assistance are critical to better share the costs and responsibility of global leadership.
+To address these challenges, the United States must improve its ability to enable partners in providing security and justice for their own people and responding to common security challenges. Therefore, the United States will pursue a new approach to security sector assistance to better meet this complex and interdependent security environment. This approach will align with the goals and guidelines outlined below.
+The Definition of Security Sector Assistance
+The security sector is composed of those institutions - to include partner governments and international organizations - that have the authority to use force to protect both the state and its citizens at home or abroad, to maintain international peace and security, and to enforce the law and provide oversight of those organizations and forces. It includes both military and civilian organizations and personnel operating at the international, regional, national, and sub-national levels. Security sector actors include state security and law enforcement providers, governmental security and justice management and oversight bodies, civil society, institutions responsible for border management, customs and civil emergencies, and non-state justice and security providers. Security sector assistance refers to the policies, programs, and activities the United States uses to:
+
+ • Engage with foreign partners and help shape their policies and actions in the security sector;
+ • Help foreign partners build and sustain the capacity and effectiveness of legitimate institutions to provide security, safety, and justice for their people; and,
+ • Enable foreign partners to contribute to efforts that address common security challenges.
Goals for U.S. Security Sector Assistance
+The principal goals of our security sector assistance are to:
+1. Help partner nations build sustainable capacity to address common security challenges, specifically to: disrupt and defeat transnational threats; sustain legitimate and effective public safety, security, and justice sector institutions; support legitimate self-defense; contribute to U.S. or partner military operations which may have urgent requirements; maintain control of their territory and jurisdiction waters including air, land, and sea borders; and help indigenous forces assume greater responsibility for operations where U.S. military forces are present.
+2. Promote partner support for U.S. interests, through cooperation on national, regional, and global priorities, including, but not limited to, such areas as: military access to airspace and basing rights; improved interoperability and training opportunities; and cooperation on law enforcement, counterterrorism, counternarcotics, combating organized crime and arms trafficking, countering Weapons of Mass Destruction proliferation, and terrorism, intelligence, peacekeeping, and humanitarian efforts.
+3. Promote universal values, such as good governance, transparent and accountable oversight of security forces, rule of law, transparency, accountability, delivery of fair and effective justice, and respect for human rights.
+4. Strengthen collective security and multinational defense arrangements and organizations, including by helping to build the capacity of troop- and police-contributing nations to United Nations and other multilateral peacekeeping missions, as well as through regional exercises, expert exchanges, and coordination of regional intelligence and law enforcement information exchanges.
+Our assistance can also yield the benefit of the adoption of U.S. products and technology, which increases interoperability and interdependence between the United States and partners, lowers the unit cost for all, and strengthens the industrial base.
+Policy Guidelines for U.S. Security Sector Assistance
+To effectively achieve the goals identified above, the United States must strengthen its own capacity to plan, synchronize, and implement security sector assistance through a deliberate and inclusive whole-of-government process that ensures alignment of activities and resources with our national security priorities. Therefore, the United States will:
+• Ensure consistency with broader national security goals. Security Sector Assistance programs will support and complement the full range of broad U.S. national security and foreign assistance objectives.
+• Foster United States Government policy coherence and interagency collaboration. Transparency and coordination across the United States Government are needed to integrate security sector assistance into broader strategies, synchronize agency efforts, reduce redundancies, minimize assistance-delivery timelines, ensure considerations of the full range of policy and operational equities, improve data collection, measure effectiveness, enhance and sustain the United States Government’s security sector assistance knowledge and skills, and identify gaps.
+• Build sustainable capacity through comprehensive sector strategies. Partner capacity can only be sustained over the long-term when partner governments have the political will, absorptive capacity, credible and effective institutions, willingness to independently sustain U.S. investments, an equal stake in the success of security sector initiatives, and policy commitment to security sector reform. United States Government efforts must be sensitive to these requirements, including anticipation of partner capacity, sustainment and oversight needs, coordination with partner governments across the breadth of security sector assistance activities, and pursuit of security sector reform as part of a broader, long term effort to improve governance and promote sustainable economic development.
+
+ • Be more selective and use resources for the greatest impact. To maximize the impact of limited resources for security sector assistance, the United States Government will be strategic and focused on investments aligned with national security priorities and in countries where the conditions are right for sustained progress. Resource allocation will be evaluated based on common U.S. Government assessments, multi-year strategies, and performance against measures of effectiveness.
• Be responsive to urgent crises, emergent opportunities, and changes in partner security environments. Though a more strategic, anticipatory approach to security sector assistance should limit this requirement, the United States should have the ability to allocate flexible security sector assistance to respond to short-notice requirements. Timely shifts in partner interests, emerging threats, or performance against security sector objectives may require review of whether security sector investments remain an effective tool in meeting U.S. national security goals. In such instances, U.S. policymakers should consider initiating, restructuring, or terminating security sector assistance programs either as part of the annual planning cycle or on an immediate basis.
+• Ensure that short-term interventions are consistent with long term goals. Any instance of surging security sector assistance to meet unforeseen urgent and emergent needs or opportunities should be incorporated into a broader United States Government strategy to sustain any new capacity, mitigate potential negative impacts on other national security objectives, and achieve longer-term U.S. goals and objectives.
+• Inform policy with rigorous analysis, assessments, and evaluations. The United States Government will introduce common standards and expectations for assessing security sector assistance requirements, in addition to investing in monitoring and evaluation of security sector assistance programs. Such standards will be aided by a requirement for measurable security sector assistance objectives, appropriate data collection of the impacts and results of security sector assistance programs, and improved efforts to inform decision-making processes with data on what works and what does not work through impact evaluations when permissible. Such standards and data collection will take into account the varying security and information environments where U.S. programs operate.
+• Analyze, plan, and act regionally. Security sector assistance programs should be complemented by and linked to a broader regional approach, including cross-border program coordination, support for regional organizations, and facilitation of linkages among partner countries, where appropriate.
+• Coordinate with other donors. The United States Government will establish a division of labor with other bilateral, multilateral, and regional actors based on capacity, effectiveness, and comparative advantage. Such coordination will be aimed at sharing the burden across a greater number of interested parties and enhanced coordination with the partner governments to achieve mutually agreed outcomes.
+]]>The “security sector” of a government is composed of institutions that have the authority to use force to protect both the state and its citizens at home or abroad, maintain international peace and security, and to enforce the law and provide oversight of security institutions and forces. Security sector assistance refers to the policies, programs, and activities the United States Government employs to engage with foreign partners in these areas, including to help them build and sustain the capacity and effectiveness of institutions to provide security, safety, and justice for their people; and to contribute to efforts that address common security challenges.
+The United States has long recognized that the diversity and complexity of the threats to our national security require a collaborative approach, both within the United States Government and among allies, partners, and multilateral organizations. U.S. security sector assistance yields important and tangible benefits, including reducing the need for the United States or partner nations to intervene abroad in response to instability. The policy directive issued by the President today will enhance the responsiveness, impact, and effectiveness of our security sector assistance, including through effective management and alignment of efforts across multiple agencies.
+]]>The Commander in Chief's trophy was established in 1972. It is awarded to the service academy with the best overall record against the other two service academies. Every year since 1984, except 1993 when there was no outright winner, the President has personally presented the Trophy to members of the victorious Academy's football team at the White House.
+This event will be open press. Members of the media who wish to cover this event must send NAME, MEDIA OUTLET, PHONE AND EMAIL for each person planning to cover the event to media_affairs@who.eop.gov by 12:00PM ET Wednesday, April 10th. NOTE: Members of the media who do not have a White House hard pass must also submit their full name, date of birth, Social Security number, gender, country of birth, country of citizenship and current city and state of residence. If we are able to accommodate your request for credentials, we will send a confirmation with further instructions and logistical details.
+]]>The Prime Minister’s visit underscores the close friendship between the United States and Turkey and the strategic importance we place on broadening and strengthening our relationship moving forward.
+]]>9:28 A.M. EDT
+THE VICE PRESIDENT: Well, thank you all for being here today. And welcome to the White House, and a belated happy Easter -- this time of the year when we celebrate renewal and we reflect on the faith that brings us together.
+For me, the essence of my faith is tolerance: not being judgmental about people of different faiths. When I was in Rome a few weeks ago, Pope Francis spoke movingly in his homily about our commitments to each other, not just as people of faith, but, he went on to say, but as human beings.
+I grew up in a tradition of Catholic social doctrine, and I was incredibly impressed by His Holiness’s homily, his sense of social justice. But I believe his message reads something essential about all faiths, and that is ultimately we all believe that we have a responsibility to one another and we all are our brothers’ and our sisters’ keepers.
+When it comes down to it, we all know that we’re connected by much more than divides us, although the focus is always on what divides us. As we move forward as a nation, I do believe we’re going to be judged on how we answer that call -- that call of moral responsibility, to whether we stand up for those who have the least among us, whether we act on their behalf.
+And one of the things that I think at least the President and I believe has been the essence of this administration is the most animating principle of the administration has been just that: to look out for the least among us. Those are the values that I know that the President -- and I personally know -- the President holds extremely close to his heart.
+So I’d like to introduce to you now, my friend, and our President, President Barack Obama. (Applause.)
+THE PRESIDENT: Thank you. (Applause.) Thank you so much. Everybody, please have a seat. Thank you.
+Well, good morning, everybody.
+AUDIENCE: Good morning.
+THE PRESIDENT: Welcome, once again, to the White House. It is always wonderful to see so many friends from all across the country. I want to thank you for joining us today. I want to thank everybody for their prayers, but, most importantly, I want to thank everybody for their good works through your ministries. It's making a difference in communities all across this nation, and we could not be more proud to often have a chance to work with you.
+To all the pastors in the house, I hope you’ve enjoyed some well-deserved rest after a very busy Holy Week. I see some chuckles, so maybe not. (Laughter.) Here at the White House, I’m pleased to say that we survived yet another Easter Egg Roll. (Laughter.)
+
+ Now, if you’ve been to this breakfast before, you know that I always try to avoid preaching in front of people who do it for a living. That's sound advice. So this morning, I'm just going to leave the sermon to others and offer maybe a few remarks as we mark this -- the end of this Easter season.
In these sacred days, those of us as Christians remember the tremendous sacrifice Jesus made for each of us –- how, in all His humility and His grace, He took on the sins of the world and extended the gift of salvation. And we recommit ourselves to following His example –- to loving the Lord our God with all our hearts and all our souls and with all our minds, and to loving our neighbors as ourselves.
+That’s the eternal spirit of Easter. And this year, I had -- I think was particularly special for me because right before Easter I had a chance to feel that spirit during my trip to the Holy Land. And I think so many of you here know there are few experiences more powerful or more humbling than visiting that sacred earth.
+It brings Scripture to life. It brings us closer to Christ. It reminds us that our Savior, who suffered and died was resurrected, both fully God and also a man; a human being who lived, and walked, and felt joy and sorrow just like us.
+And so for Christians to walk where He walked and see what He saw are blessed moments. And while I had been to Jerusalem before, where Jesus healed the sick, and cured the blind, and embraced the least of these, I also had a chance to go to the Church of the Nativity in Bethlehem. And those of you who have been there know that entering the church is a remarkable experience, although it is a useful instruction to see how managing different sections of the church and different clergy -- it feels familiar. (Laughter.) Let’s just put it that way. (Laughter.)
+And as I approached the Altar of the Nativity, as I neared the 14-pointed Silver Star that marks the spot where Christ was born, the Patriarch of Jerusalem welcomed me to, in his words, “the place where heaven and Earth met.”
+And there, I had a chance to pray and reflect on Christ’s birth, and His life, His sacrifice, His Resurrection. I thought about all the faithful pilgrims who for two thousand years have done the same thing -- giving thanks for the fact that, as the book of Romans tells us, “just as Christ was raised from the dead through the glory of the Father, we too may live a new life.”
+I thought of the poor and the sick who seek comfort, and the marginalized and the forsaken who seek solace, and the grateful who merely seek to offer thanks for the simple blessings of this life and the awesome glory of the next. I thought of all who would travel to this place for centuries to come and the lives they might know.
+And I was reminded that while our time on Earth is fleeting, He is eternal. His life, His lessons live on in our hearts and, most importantly, in our actions. When we tend to the sick, when we console those in pain, when we sacrifice for those in need, wherever and whenever we are there to give comfort and to guide and to love, then Christ is with us.
+So this morning, let us pray that we’re worthy of His many blessings, that this nation is worthy of His many blessings. Let us promise to keep in our hearts, in our souls, in our minds, on this day and on every day, the life and lessons of Christ, our Lord.
+And with that, I’d like to ask Father Larry Snyder to deliver our opening prayer.
+END
+ 9:36 A.M. EDT
The United States is firmly committed to continuing to deepen our consultations with Qatar on the many important developments in the region. The President looks forward to a broad discussion with the Amir on a range of mutual interests and regional issues to further strengthen our bilateral partnership.
+]]>This achievement comes on the anniversary of President Obama’s remarks in Prague on April 5, 2009, where he stated that nuclear terrorism remains our greatest threat. The President called on the world to act with a sense of purpose and without delay to secure vulnerable nuclear material. The United States and the global community have responded with an unprecedented effort that has secured thousands of kilograms of HEU and plutonium, enough for dozens of nuclear weapons.
+The removal of highly enriched uranium from the Czech Republic was the culmination of a multi-year effort by the United States’ National Nuclear Security Administration, the Czech Republic’s Nuclear Research Institute, Russia’s Federal Atomic Energy Agency, and the International Atomic Energy Agency (IAEA). The United States is grateful to these partners and to the Czech and Russian governments for their outstanding cooperation.
+]]>2:55 P.M. PDT
+MR. CARNEY: Fire away.
+Q The North Koreans have moved missiles into position in the east. Before the response was nothing new has happened. Can we just get a response to that?
+MR. CARNEY: I can tell you that we've seen the press reports and we continue to closely monitor the situation on the Peninsula. Threats and provocative actions will not bring the DPRK the security, international respect, and economic development that it seeks. We continue to urge the North Korean leadership to heed President Obama's call to choose the path of peace and come into compliance with its international obligations.
+Q Have you verified with those reports independently?
+MR. CARNEY: I'm not going to comment on intelligence matters. I can tell you that simply we have seen the reports and the response is, as we've been saying, that actions and provocative rhetoric only serve to further isolate North Korea, to harm the North Korean economy, to set back any efforts the North Koreans might want to take towards rejoining the community of nations. There is a path available to North Korea, a path that would allow it to rejoin the international community, but it would require commitment to renounce its nuclear weapons ambitions and to abide by its international obligations.
+Q Jay, given these latest reports, does this suggest that this is more than just bluster, that North Korea is actually going to take action this time?
+MR. CARNEY: I would simply say that we're monitoring both the actions taken by and the statements made by the North Korean leadership. And we're also taking prudent measures to respond to that activity and to those statements. It is still important to note that, as those who have worked on this issue or reported on this issue over the years know, what we are seeing now is a familiar pattern of behavior out of the North Koreans -- regrettable, but familiar.
+Q Will the President address this personally -- publicly? Will the President address this?
+MR. CARNEY: I don't have any scheduling announcements today.
+Q Jay, does the President see a potential red line, though, that the Koreans, the North Koreans might cross that would require a different kind of response from the U.S.?
+MR. CARNEY: We're taking I think a series of precautionary measures that have been reported and that we've discussed. The fact of the matter is North Korea has one path available to it if it seeks to improve its economy and reenter the community of nations, and that is to work towards abiding by its international obligations.
+I think that it's important to note, again, as I said, that there is an element to this that is familiar, for those of you who have covered it and to those who have worked on it. It’s obviously of concern, and we're taking all the necessary precautions.
+Q Did the President see Keystone protesters last night? And will they influence his decision, thinking on this?
+MR. CARNEY: I'm not sure if in the motorcade he saw them. I think that, as he said, there is obviously a great deal of passion around this issue. But it is, as a policy matter, being assessed appropriately in the State Department through a process that has been longstanding through previous administrations of both parties. This is something that is evaluated on the merits, and that process is underway.
+Q Jay, to go back to North Korea for a moment, can you update us on the latest conversations that the President has had with leaders in the region, with the leader of South Korea and Japan?
+MR. CARNEY: I don’t have any leader-to-leader conversations to read out to you. The President has been regularly updated on both the actions and statements by the North Koreans, as well as the responsive measures, prudent measures that we've taken. We are obviously consulting regularly with our allies in Seoul and Tokyo, as well as other allies and partners.
+And we are working with other nations, including the Russians and the Chinese, to try to influence North Korean behavior to, as I think we discussed on the plane yesterday, to discuss with the Chinese in particular the need to use the influence that they have with the North Korean regime to try to get the -- to ratchet down the provocative behavior and actions, and to maintain stability in the region.
+Q Will there be any further test strikes, or is that something that the United States thinks now might actually inflame the situation?
+MR. CARNEY: Will there be further what? I'm sorry.
+Q Test strikes, test flights?
+MR. CARNEY: Strikes or flights? Sorry. I think, look, we’ve engaged in exercises with the South Koreans regularly at, I believe, this time of year. I don’t anticipate any change in that, but I would refer you to the Defense Department.
+Q Back on Keystone. Yesterday, at one of the events, the President made clear that any steps on environment and on climate change have to be taken with consideration of the economic needs of the middle class, as well. I'm wondering if that’s a consideration that he keeps in mind, the job creation potential of Keystone, of the pipeline as he makes -- as the administration makes that decision.
+MR. CARNEY: Again, this is a decision that’s housed within the State Department and made on the merits. I've seen some reports that stretch the meaning of what the President said beyond reason. He was not referring to Keystone. He never mentioned Keystone. And I would treat -- I think those reports suggesting that that’s what he was talking about are not backed up by facts.
+But obviously, broadly speaking, matters of economic growth and job creation as well as middle-class security are always at the forefront of the President's mind, and they’re his top priorities. It is also a high priority of the President to take action to both enhance our energy independence and reduce the impact of carbon emissions on the environment. And he did that in his first term by passing the historic increase in fuel efficiency standards that will have an enormous positive effect on carbon emissions.
+Q The host of the first fundraiser yesterday is very opposed to Keystone. Did the President discuss that with him beforehand? And how does the President feel about the actions that he's taking regarding the Massachusetts race?
+MR. CARNEY: I haven't discussed that with the President, and I don’t have any private conversations to read out to you between the President and anybody yesterday.
+Q If you could get back to us -- because at the top, the President said that he discussed kind of climate change with Tom Steyer, the host of the first event. If Keystone was part of that, if you could get back to us on that, that would be helpful.
+MR. CARNEY: Again, I’m not going to read out a private conversation. I think the President -- look, the President addressed this to the extent that he did, and I would refer you to his remarks.
+Q Jay, on the President’s decision to give 5 percent of his pay back to the Treasury Department, when did he make that decision? Was it his idea?
+MR. CARNEY: It was his idea. Right when the implementation of the sequester was upon us, the President indicated to staff that this was something he would like to do. He was aware, obviously, and mindful of the fact that hardworking Americans across the federal government, across the country would be affected by the implementation of the sequester -- the regrettable implementation of the sequester and indicated that this was something he wanted to do.
+Q Jay, just another quick comment on that. Will he be taking that as a deduction -- the $20,000?
+MR. CARNEY: He will not, no.
+Q Is he calling on other people to give their pay? Members of Congress?
+MR. CARNEY: No, this is a decision that each individual will make for himself or herself.
+Q We've seen other Cabinet members take the same step. Does he expect other Cabinet members --
+MR. CARNEY: No. This is obviously something that each such individual would decide for himself of herself.
+Q Jay, you said he won’t take it as a deduction?
+MR. CARNEY: He will not. Correct.
+Q I wanted to ask you about the shootings of the prosecutor in Texas. Has the President been briefed about that? And how concerned is he that that’s been going on?
+MR. CARNEY: He has been briefed about it. Obviously, a battle like this is always of concern. I believe I can refer you to the FBI for more information about what is obviously a state investigation, or a local investigation. But I believe they’re -- the FBI is where I can direct you for the federal response.
+Q How concerned is the President about safety of prosecutors? There have been calls for federal prosecutors to be armed to protect themselves.
+MR. CARNEY: I haven’t discussed that with him. Obviously, the President is concerned whenever a law enforcement official is attacked or killed. But I would hesitate to comment any further on a case that’s under investigation and about the circumstances of which we don’t, as I understand, based on public reports, we don’t know a great deal about.
+Q Jay, you mentioned earlier this week that OMB staff was going to be taking -- was going to be hit by furloughs, I believe. Any further information on how the rest of the White House staff might be affected by sequester?
+MR. CARNEY: Well, as you know, there are 11 components of the Executive Office of the President. Other components will be receiving -- staff members will be receiving furlough notices. I don’t have any specific updates for you, but I believe that process has begun.
+Q Jay, can we expect the President to continue to make trips like this to talk about passing new gun laws?
+MR. CARNEY: Well, you can certainly expect the President to continue to speak out on this issue and to encourage Americans to have their voices heard on the need for common-sense measures to reduce gun violence. What specific venues there will be and the methods that he will use to communicate that message I can’t preview for you now. But he will, as he has been for weeks and months now, he’ll be actively engaged in the effort to try to work with Congress to pass these very sensible, very common-sense measures to reduce gun violence.
+Q And I understand from some of the people who are working on the legislation that they are thinking about some sort of compromise on background checks, potentially allowing a loophole for family-to-family purchases. Would the President accept something like that? And what is his expectation when it comes to background checks? Does he expect that to pass?
+MR. CARNEY: I wouldn’t put odds from him or from me on any of this, any of the elements of the legislative package. As he said in the beginning and I have echoed of late, all of this is hard, and it has been hard for quite a long time. And it requires a concerted effort of discussion and conversation and negotiation. It requires members of Congress and others involved in this effort, who are concerned about this issue, to step back and think about these issues differently, perhaps, from the way that they have in the past. And a lot of that has taken place.
+And I think it’s -- while we are certainly far from having accomplished what needs to be accomplished yet, there has been progress, and that’s welcome. But I think, as the President has been saying, this is going to be -- these issues are -- have always been hard and require a lot of work, a lot of negotiation, and a recognition, I think, by everyone involved that, for example, when it comes to background checks, this is not an issue of registering guns.
+I believe one of the representatives from a sportsmen's group who participated in the roundtable yesterday I saw had an article I believe in Politico, and he made clear that he believes and his members believe that background checks is an area where there should be broad agreement that sportsmen and women, responsible gun owners support background checks. And, as he said, I believe in that piece, and he said in the roundtable with the President, the legislation under consideration in Congress does not and will not establish a gun registry. So assertions to the contrary are false.
+Q -- what happened in the last hour or hour and a half, but Chicago’s famous movie critic and Pulitzer Prize winner, Roger Ebert, died, from the President’s hometown. I don’t know if he had a chance to see it, if the President heard about that news and if he had a reaction, and if he’s ever met Roger Ebert?
+MR. CARNEY: He is aware of it. We talked about it on the helicopter ride that we most recently took. And as a Chicagoan, I think he feels the loss in a way that I think only Chicagoans can. Obviously, Roger Ebert became a national figure associated with the movies for Americans across the country. But it is a particularly keen loss for I think the city of Chicago.
+Q Did you hear me say -- had the President ever met him, by any chance?
+MR. CARNEY: I did not ask him that. I can find try to find that out.
+Q Jay, can I ask you, at one point last night, the President said that he expected Nancy Pelosi to return as Speaker of the House, which implies, obviously, that Democrats retake control of the House. Most handicappers don’t think that's incredibly likely next year. Why does the President feel that that is likely?
+MR. CARNEY: I think the President is always optimistic about a process in which voters across the country decide which candidates support their priorities and support an agenda that has the middle class as its focus. And that’s certainly what the President has been putting forward and what former-Speaker Pelosi, Leader Pelosi supports. He obviously has been out working to, in these last 24 hours, to help candidates who support and share his priorities get elected.
+I think it’s important to note that -- because you’ve seen a lot of rhetoric from the other side suggesting that there is something wrong with that -- that Republican leaders in the House and the Senate have been out raising money for Republican candidates; that this is a traditional exercise. And the President will continue to work with and expect and hope to work with Republicans in Congress to achieve bipartisan compromise on a whole host of important issues. And he certainly expects and believes that Republicans who are engaged in the effort to get Republicans elected will also continue to work with Democrats and with the President to try to achieve bipartisan compromise.
+Q Does he actually expect to have a Democratic House for the second half of his second term?
+MR. CARNEY: I think the President is hopeful that candidates who support a common-sense agenda, a middle-of-the-road agenda focused on strengthening the middle class and investing in our children and in innovation will win the support of their constituents. I’m not sure, beyond what the President himself said, as you noted, that he or I is going to engage in more specific predictions about midterm elections. They’re a long way off.
+Q Can follow up on that? The President said yesterday, both at the public event and also at the private fundraisers, he spent a lot of time talking about both sides need to maybe calm the rhetoric, listen to each other, and not talk across each other, beyond -- past each other. And he also said that he did believe there are Republicans who cared about their -- good Republicans out there who cared about their children's future.
+At the same time, when he left the room yesterday, I believe it's been reported by people who are familiar with Steve Israel's comments, that he was very critical of Republicans. He called them "obstructionists," and basically disruptive to the country. He said that Republicans -- if they don’t -- if you don't elect a good leader like Democrats, Republicans are not going to have a good future for their children. Is the President familiar with the representative's remarks? Does he have a concern about that tone?
+MR. CARNEY: I'm not familiar with them. And if you're telling me they occurred after the President left, I don't think the President is familiar with them. So I don't really have any comment beyond the fact that you guys are discovering the wheel here, or rediscovering it if you are surprised by the fact that Democrats are trying to get elected and so are Republicans in midterm elections.
+Q That’s an election strategy, rather than if they -- I mean, you're saying it's sort of good cop/bad cop, the President saying it's okay to work with Republicans, but other -- that other is a strategy to get elected.
+MR. CARNEY: I really don't see a story here. I mean, I saw a pool report yesterday that suggested the President was "bashing" Republicans. And I challenge anybody to find evidence of language that reflected bashing. Of course, he wasn't. But he does support candidates -- Democratic candidates who support the common-sense, middle-of-the-road agenda to strengthen the middle class.
+And, look, as he said in the remarks that you cited at the top of your question, he believes that Republican leaders and rank-and-file Republicans believe in their positions and are advocating for their positions both in Washington and on the hustings. And that's obviously how it should be.
+Q But he’s been much tougher on Republicans before. So was he purposefully dialing back his comments this time, then?
+MR. CARNEY: I get confused about which piece of conventional wisdom I'm attempting to understand and rebut, because I thought we were engaged in a charm offensive. Hasn't that been the narrative of late, right? (Laughter.)
+Q Carney is bringing his A-game. (Laughter.) Let the record show that Carney is bringing it.
+MR. CARNEY: Let the record show that I appreciate the comments by Mr. Nichols. Look, both are true. The President obviously supports those candidates and those incumbents who are pressing for the same priorities that he is pressing for. It is also true that he believes we have an opportunity, particularly at this time, to get some big things done on behalf of the American people, things that will only happen if we get bipartisan agreement.
+And that includes comprehensive immigration reform. It includes common-sense measures to reduce gun violence. It includes -- if there is a willingness by Republicans to take a balanced approach to deficit reduction -- achieving the full $4 trillion-plus in deficit reduction over 10 years that was laid out by the fiscal commission and others, and that the President has envisioned in the proposals he has put forward, in an approach that would both produce more savings through spending cuts and entitlement savings, but also ask the wealthiest and the well-connected to pay a little bit more through tax reform that closes loopholes that Republicans themselves only a few months ago said should be closed.
+Q A foreign policy question. Japan's central bank took measures today to boost the Japanese economy through monetary easing, which may make it more expensive for manufacturers to sell to Japan. Does the U.S. have a position on that?
+MR. CARNEY: If it does, it can be found at the Treasury Department. (Laughter.)
+Q Let the record show I tried. (Laughter.)
+Q Reports that the White House is telling lawmakers the chained CPI is going to be in the budget. Given that you guys have said that that offer is on the table, is that a pretty safe assumption to make that it will be in there?
+MR. CARNEY: You know what they say about assuming.
+Q (Inaudible.)
+MR. CARNEY: Well, I will deliver you from all the speculation on April 10th, when the President releases his budget. And until then, I'm not going to preview the budget in part or in whole. We have said that since he made it, the President's offer to Speaker Boehner remains on the table. It was regrettable that the Speaker walked away from it at the end of last year, because it represented a good-faith attempt to meet Republicans more than halfway on spending cuts and revenues and savings from entitlements. And that offer has remained on the table.
+But obviously the President's budget is something that won't be released until April 10th. And when it is, we'll overwhelm you with details and briefings.
+Q And the President is pretty excited about releasing his budget?
+MR. CARNEY: As excited as he ever is -- always is. Thank you.
+END
+ 3:17 P.M. PDT
The United States and the UAE enjoy a vibrant and expanding bilateral relationship, including strong defense cooperation and economic ties, and a shared commitment to advancing peace, economic opportunity, and stability throughout the world. The United States remains firmly committed to continuing to deepen the U.S.-UAE partnership through close and regular consultations between our two countries.
+]]>1:16 P.M. EDT
+ MRS. OBAMA: How are you guys doing?
CHILDREN: Good.
+MRS. OBAMA: Is it a little chilly?
+CHILDREN: Yes.
+MRS. OBAMA: Where are your jackets? I'm going to be the mother. Where are your jackets? (Laughter.) All right, so we're going to put you to work.
+Well, welcome. This is the fifth planting of the White House Kitchen Garden. Are you guys excited?
+CHILDREN: Yes.
+MRS. OBAMA: So that we know who is here, I want to make sure that all these wonderful people with their cameras know which schools are here. So when I say your school name, raise your hand, or scream or something like that.
+Milton Elementary School from Milton, Vermont. Woo-hoo! Yes, is that the principal? It's like woo-hoo, party on. Sarah Moore Greene Magnet Technology Academy in Knox County, Tennessee. Woo-hoo! (Applause.) Arthur D. Healey School, Somerville Public Schools in Somerville, Massachusetts. Woo-hoo! (Applause.) Benjamin David Gullett Elementary School in Bradenton, Florida. (Applause.) Yes, that was it. That was it. I know you all are cold, coming from Florida. And then we have our partners from many, many, many years -- Bancroft Elementary School. (Applause.) There we go. See, they're comfortable yelling in the White House. (Laughter.) And then we have the Harriet Tubman Elementary School students. (Applause.)
+So it's great to have you guys here. Are you ready to go? One of the reasons we invited these schools -- Harriet Tubman School and Bancroft, they have been our partners for years. But the schools from across the country who have come, you guys are here because you are doing such wonderful things to implement the new school nutrition standards at your school. So do you like your school lunches? They are healthy and they are good? And you're eating your vegetables? And many of you have gardens of your own? Awesome. So you know what to do here, right? Are you ready to plant?
+All right, let's get going. Let's do it!
+END
+ 1:18 P.M. EDT
10:28 A.M. PDT
+THE PRESIDENT: Thank you. (Applause.) Thank you so much. Well, it is wonderful to see all of you. This is an intimate group. What I want to do is mostly have a conversation. But, first of all, obviously I want to thank Liz and Mark for their incredible hospitality. We couldn’t be more appreciative. And I want to thank all of you for being here today.
+A lot of you -- in fact, almost everybody here I’ve known, have supported me. Some of you were involved in my first campaign when nobody could pronounce my name. (Laughter.) And you stuck with me through thick and thin, and I just want to say how much I appreciate all of you for taking the time.
+Some people have been asking me -- well, what’s different about the second term? And I say, well, for one thing, I’m not raising money for myself, and that’s good. (Laughter.) For another thing, the girls are getting old enough now where they don’t want to spend time with us on the weekends. (Laughter.) They have sleepovers and parties and sports, and all that stuff. I don’t know if you guys are doing the same thing to your parents, but it’s starting to happen.
+But I think the most important thing is that when you don’t have another race to run, all you’re really thinking about it is how do I leave a legacy, not simply for the next President, but for the next generation that makes America stronger; that helps assure our children can compete with an ever-changing world; that we are solving what I think is one of the core challenges we face as a generation, and that is making sure that we have a strong, growing middle class and ladders of opportunity for everybody who is willing to work to get into that middle class; that we continue to be innovative; that we address some of our core environmental challenges, particularly climate change, to make sure that the planet we leave behind is one that our children can thrive in.
+So you end up taking the long view on things. And you also feel a great urgency because you know you don’t have a lot of time. And so the main message I want to deliver here today is that I could not be prouder of the track record that we’ve put together over the last four years and two months, whether it was saving an economy from a great depression; doubling fuel efficiency standards on cars; expanding access to college for the millions of young people; making sure that nobody in this country has to go bankrupt because they get sick; re-upping the law preventing violence against women; making sure that we have the "don't ask, don't tell" policy, which I think has laid the groundwork for further progress when it comes to LGBT rights.
+On so many issues, we’ve made progress. But we’ve got so much more work to do. And I laid out what that vision might look like during both the inauguration speech and in the State of the Union. I want to make sure that we’ve got the best education system in the world and that starts young. And so we’ve given all the research that we have. Expanding our investment in childhood education can make all the difference in the world, and will pay enormous dividends for a very, very long time.
+I want to make sure that we’re rebuilding this country, our infrastructure. We’ve got $2 trillion in deferred maintenance. We could be putting people back to work right now, and not only improving our current economic growth, but laying the foundation for economic growth for many years to come. Many of you are aware that I am a big proponent of investments in science and research, and obviously, this entire region has thrived precisely because it has been the epicenter of innovation. And that requires us putting money into research in biomedicine, in nanoscience. Our recent initiative around the brain and being able to map that and crack the code potentially not only can help us cure things like Alzheimer’s and Parkinson’s, but can generate entire new industries and put people back to work and be the next great challenge for the American economy.
+And I believe that we’ve got to get a handle on our energy policy so that we are growing and we are productive, but we are not simply investing in the energy sources of the past; we’re also investing in the energy sources of the future. We’ve doubled fuel efficiency standards on cars, but we’ve also had a chance to double our production in solar and wind and biofuels. We can continue to make progress on that front. We can continue to make sure that electric cars and other new technologies for transportation are built here in the United States of America and not someplace else.
+We can make sure that our buildings, our schools, our hospitals are more efficient. If we were able to achieve the same efficiencies that Japan already has achieved using existing technologies, we'd cut our power utilization by 15, 20 percent -- which would have enormous ramifications in bringing down our carbon footprint.
+And we can do all this without spending massive amounts of money. The truth is, is that our fiscal situation has improved significantly since I first came into office, but we still have a long way to go. The way for us to do it intelligently is the kind of balanced approach I've talked about in the past: making sure that everybody is doing their fair share; making sure that those of us in this room and, frankly, in this whole town probably -- (laughter) -- recognizes the incredible blessings that we've been given and make sure that we're willing to invest back in the next generation, and also making sure that our money is wisely spent.
+We still waste money in all kinds of things that don't work, and we have the capacity to shift those dollars into things that do work and that will grow our economy. And we can reduce our deficit, stabilize our debt, and do so without sacrificing the kinds of investments that are going to be required to grow.
+Now, the last point I'll make is just politics. Our policies, the ones that we prevented -- or the ones that we've presented, traditionally, would be considered pretty bipartisan. There's nothing particularly Democratic about road building or basic science or environmental protection. Teddy Roosevelt started the conservation movement. Abraham Lincoln, the first Republican President, was pretty big on building infrastructure and investing in things like science and research.
+Unfortunately, we continue to still have some of that gridlock in Washington. Part of it is fed by changes in information and communications that amplify conflict and extremes as opposed to trying to bring people together. I know it's a great source of frustration for the American people. I assure you it's a source of frustration for me as well. (Laughter.)
+But what I believed when I was running for this office back in 2007-2008, what I believed when I was running for a second term is what I still believe now -- and that is this country is not as divided as our politics would suggest. And the only way we break through this gridlock is when people's voices are heard and people are engaged and involved. I am very optimistic that we get immigration reform done in the next few months. And the reason I'm optimistic is because people spoke out through the ballot box, and that's breaking gridlock.
+It's going to be tougher to get better gun legislation to reduce gun violence through the Senate and the House that so many of us I think want to see, particularly after the tragedy in Newtown. But I still think it can get done if people are activated and involved.
+And so, on every front, on every issue that all of you care about, making sure that we can provide good information to the American people, engage them, inform them; make sure that they are embracing a form of citizenship that goes beyond just voting, but involves understanding what's at stake and talking to their neighbors, talking to their coworkers, talking to their friends, writing to their members of Congress, getting organized, getting mobilized -- all that ends up being really the critical ingredient and the constant dynamic change and improvement that has characterized this country for so long.
+And your involvement with the DNC helps us do that. It will help us register voters. It will help us make sure that they understand what's at stake in all of these issues. It's hugely important. It's not always glamorous. It's not always sexy. But it's really what ends up driving our ability to make policy and to deliver for the young people who are here today.
+So, again, I want to thank Liz and Mark for making this spectacular home available to us. And I want to thank all of you for not only what you've done in the past on my behalf, but more importantly what you're continuing to do on behalf of this country as a whole.
+Thank you, so much. I appreciate it. (Applause.)
+END
+ 10:39 A.M. PDT
Dear Mr. Speaker: (Dear Mr. President:)
+Section 202(d) of the National Emergencies Act (50 U.S.C. 1622(d)) provides for the automatic termination of a national emergency unless, within 90 days prior to the anniversary date of its declaration, the President publishes in the Federal Register and transmits to the Congress a notice stating that the emergency is to continue in effect beyond the anniversary date. In accordance with this provision, I have sent to the Federal Register for publication the enclosed notice stating that the national emergency declared in Executive Order 13536 of April 12, 2010, with respect to Somalia is to continue in effect beyond April 12, 2013.
+On January 17, 2013, the United States Government announced its formal recognition of the Government of Somalia. The United States had not recognized a government in Somalia for the previous 22 years. Although the U.S. recognition underscores a strong commitment to Somalia's stabilization, it does not remove the importance of U.S. sanctions, especially against persons undermining the stability of Somalia. For this reason, I have determined that it is necessary to continue the national emergency with respect to Somalia and to maintain in force the sanctions to respond to this threat.
+Sincerely,
+BARACK OBAMA
+]]>- - - - - - -
+CONTINUATION OF THE NATIONAL EMERGENCY WITH RESPECT TO SOMALIA
+On April 12, 2010, by Executive Order 13536, I declared a national emergency pursuant to the International Emergency Economic Powers Act (50 U.S.C. 1701-1706) to deal with the unusual and extraordinary threat to the national security and foreign policy of the United States constituted by the deterioration of the security situation and the persistence of violence in Somalia, acts of piracy and armed robbery at sea off the coast of Somalia, which have repeatedly been the subject of United Nations Security Council resolutions, and violations of the arms embargo imposed by the United Nations Security Council.
+On July 20, 2012, I issued Executive Order 13620 to take additional steps to deal with the national emergency declared in Executive Order 13536 in view of United Nations Security Council Resolution 2036 of February 22, 2012, and Resolution 2002 of July 29, 2011, and to address: exports of charcoal from Somalia, which generate significant revenue for al-Shabaab; the misappropriation of Somali public assets; and certain acts of violence committed against civilians in Somalia, all of which contribute to the deterioration of the security situation and the persistence of violence in Somalia.
+The situation with respect to Somalia continues to pose an unusual and extraordinary threat to the national security and foreign policy of the United States. For this reason, the national emergency declared on April 12, 2010, and the measures adopted on that date and on July 20, 2012, to deal with that emergency, must continue in effect beyond April 12, 2013. Therefore, in accordance with section 202(d) of the National Emergencies Act (50 U.S.C. 1622(d)), I am continuing for 1 year the national emergency declared in Executive Order 13536.
+This notice shall be published in the Federal Register and transmitted to the Congress.
+BARACK OBAMA
+]]>3:19 P.M. MDT
+THE PRESIDENT: Thank you! (Applause.) Thank you so much. Everybody, please have a seat. Thank you. Well, it is wonderful to be back in Colorado. It is wonderful to be back in Denver. I want to thank Chief White for that introduction. You’ve got some outstanding elected officials who are here today, and I want to acknowledge them. First of all, a wonderful governor -- John Hickenlooper is here. (Applause.) He’s here somewhere. I know, because I just talked to him. There he is. Next to him an outstanding lieutenant governor, Joe Garcia. (Applause.) One of the finest young senators in the country -- Michael Bennet is here. (Applause.) Terrific members of the House of Representatives -- Ed Perlmutter -- (applause) -- and Dianna Degette. (Applause.) And your own mayor, Michael Hancock, is here. (Applause.)
+I want to say thank you to the Denver Police for having me here, and more importantly, for the outstanding work that all of you do each and every day to serve your communities and protect your citizens.
+Before I came out here, I had a chance to sit down with some local law enforcement, Attorney General Holder, and some of the leaders I just mentioned, the wonderful mayor of Aurora who’s here, sportsmen, parents, loved ones of the victims of the shootings in Columbine and Aurora. And we talked about what we can do to protect more of our citizens from gun violence.
+And from the beginning of this effort, we’ve wanted law enforcement front and center in shaping this discussion and the reforms that emerge from it -- because law enforcement lives this every day. Law enforcement are the first to see the terrible consequences of any kind of violence, certainly gun violence -- lives lost, families broken, communities that are changed forever. They’re very often in the line of fire. The law enforcement knows what works and what doesn’t, and so we wanted that experience and that advice.
+And it was also important for us to hear from mayors like Steve Hogan, because he’s been on the front lines having to deal with these issues under incredibly sad circumstances. And I’ve come to Denver today in particular because Colorado is proving a model of what’s possible.
+It’s now been just over 100 days since the murder of 20 innocent children and six brave educators in Newtown, Connecticut -- an event that shocked this country and I think galvanized parents all across the country to say, we’ve got to do something more to protect our kids. But consider this: Over those 100 days or so, more than 100 times as many Americans have fallen victim to gun violence. More than 2,000 of our fellow citizens, struck down, often because they were just going about their daily round. They weren’t doing anything special. Just doing what folks do every day -- shopping, going to school. Every day that we wait to do something about it, even more of our fellow citizens are stolen from our lives by a bullet from a gun.
+Now, the good news is Colorado has already chosen to do something about it. (Applause.) Look, this is a state that has suffered the tragedy of two of the worst mass shootings in our history -- 14 years ago this month in Columbine, and just last year in Aurora. But this is also a state that treasures its Second Amendment rights -- the state of proud hunters and sportsmen. And, by the way, the Governor wanted me to remind everybody that there is outstanding elk hunting here in Colorado. (Laughter.) There’s a strong tradition of gun ownership that’s handed down from generation to generation, and it’s part of the fabric of people’s lives. And they treat gun ownership with reverence and respect.
+And so I’m here because I believe there doesn't have to be a conflict in reconciling these realities. There doesn’t have to be a conflict between protecting our citizens and protecting our Second Amendment rights. I’ve got stacks of letters in my office from proud gun owners, whether they’re for sport, or protection, or collection, who tell me how deeply they cherish their rights, don’t want them infringed upon, but they still want us to do something to stop the epidemic of gun violence. And I appreciate every one of those letters. And I’ve learned from them.
+And I think that Colorado has shown that practical progress is possible thanks to the leadership of Governor Hickenlooper and some of the state legislators who are here today. When I was talking to Steve, he mentioned that Aurora is very much a purple city. It’s got a majority Republican city council; a majority of the state legislators are Democrat. But they came together understanding that out of this tragedy there had to be something that made sense. And so we’ve seen enacted tougher background checks that won’t infringe on the rights of responsible gun owners, but will help keep guns out of the hands of dangerous people. (Applause.)
+Now, in January, just a few weeks after Newtown, I put forward a series of common-sense proposals along the same lines as what’s passed here in Colorado, to reduce gun violence and keep our kids safe. In my State of the Union address, I urged Congress to give these proposals a vote. And, by the way, before we even asked for a vote, I had already signed numerous executive orders doing what we could administratively to make sure that guns don't fall into the hands of the wrong people.
+But what I said then is still true: If we're really going to tackle this problem seriously, then we've got to get Congress to take the next step. And as soon as next week, they will be voting. As soon as next week, every senator will get to vote on whether or not we should require background checks for anyone who wants to purchase a gun.
+Now, some say, well, we already have background checks. And they're right. Over the past 20 years, those background checks have kept more than 2 million dangerous people from buying a gun. But the loopholes that currently exist in the law have allowed way too many criminals and folks who shouldn’t be getting guns -- it has allowed them to avoid background checks entirely. That makes it harder for law enforcement to do its job. It's not safe. It's not smart. And, by the way, it's not fair to responsible gun owners who are playing by the rules.
+Now, understand, nobody is talking about creating an entirely new system. We are simply talking about plugging holes, sealing a porous system that isn't working as well as it should. If you want to buy a gun, whether it's from a licensed dealer or a private seller, you should at least have to pass a background check to show you're not a criminal or someone legally prohibited from buying on. And that’s just common sense. (Applause.)
+During our roundtable discussion with Governor Hickenlooper, who I know was in the midst of this passionate debate about the legislation here in Colorado, and some people said, well, background checks aren't going to stop everybody. And the Governor was the first one to acknowledge, yes, they won't stop everybody, but as he pointed out, statistically, there are a whole bunch of folks who have been stopped.
+As a consequence of background checks, law enforcement has been able to stop people who have been convicted of murder from getting a gun, people who are under restraining orders for having committed violent domestic abuse from getting a gun. In a couple of cases the governor mentioned to me, law enforcement has actually been able to arrest people who came to pick up their gun -- (laughter) -- because they were criminals, wanted.
+So this does work. And, by the way, if you’re selling a gun, wouldn’t you want to know who you’re selling it to? Wouldn’t you want to know? Wouldn’t you want in your conscience to know that the person you’re selling to isn’t going to commit a crime? (Applause.)
+So these enhanced background checks won’t stop all gun crimes, but they will certainly help prevent some. This is common sense. And, by the way, most gun owners -- more than 80 percent -- agree this makes sense. More than 70 percent of NRA members agree. Ninety percent of the American people agree. So there’s no reason we can’t do this unless politics is getting in the way. There’s no reason we can’t do this.
+As soon as next week, every senator will get a chance to vote on a proposal to help strengthen school safety and help people struggling with mental health problems get the treatment that they need.
+As soon as next week, every senator will get to vote on whether or not we should crack down on folks who buy guns as part of a scheme to arm criminals. That would keep more guns off the streets and out of the hands of people who are intent on doing harm. And it would make life a whole lot easier and safer for the people behind me -- police officers.
+Every senator will get a say on whether or not we should keep weapons of war and high-capacity ammunition magazines that facilitate mass killings off our streets. The type of assault rifle used in Aurora, for example, when paired with a high-capacity magazine, has one purpose: to pump out as many bullets as possible, as fast as possible. It’s what allowed that gunman to shoot 70 people and kill 12 in a matter of a few minutes. I don’t believe that weapons designed for theaters of war have a place in movie theaters. Most Americans agree with that. (Applause.)
+Most of these ideas are not controversial. Right now, 90 percent of Americans -- 90 percent -- support background checks that will keep criminals and people who have been found to be a danger to themselves or others from buying a gun. More than 80 percent of Republicans agree. Most gun owners agree. Think about it: How often do 90 percent of Americans agree on anything? (Laughter.)
+And yet, there are already some senators back in Washington floating the idea that they might use obscure procedural stunts to prevent or delay any of these votes on reform. Think about that. They’re not just saying they’ll vote “no” on the proposal that most Americans support. They’re saying they’ll do everything they can to avoid even allowing a vote on a proposal that the overwhelming majority of the American people support. They’re saying your opinion doesn’t matter.
+We knew from the beginning that change wouldn’t be easy. And we knew that there would be powerful voices that would do everything they could to run out the clock, change the subject, ignore the majority of the American people. We knew they’d try to make any progress collapse under the weight of fear and frustration, or maybe people would just stop paying attention.
+The only way this time will be different is if the American people demand that this time it must be different -- that this time, we must do something to protect our communities and our kids. (Applause.) We need parents, we need teachers, we need police officers, we need pastors, we need hunters and sportsmen, Americans of every background to say, we’ve suffered too much pain and care too much about our children to allow this to continue. We’re not going to just wait for the next Newtown or the next Aurora before we act. And I genuinely believe that’s what the overwhelming majority of Americans -- I don’t care what party they belong to -- that’s what they want. They just want to see some progress.
+It was interesting, during the conversation, a number of people talked about the trust issue. Part of the reason it's so hard to get this done is because both sides of the debate sometimes don't listen to each other. The people who take absolute positions on these issues, on both sides, sometimes aren't willing to concede even an inch of ground.
+And so one of the questions we talked about was, how do you build trust? How do you rebuild some trust? And I told the story about two conversations I had. The first conversation was when Michelle came back from doing some campaigning out in rural Iowa. And we were sitting at dinner, and she had been to like a big county, a lot of driving out there, a lot of farmland. And she said, if I was living out in a farm in Iowa, I'd probably want a gun, too. If somebody just drives up into your driveway and you're not home -- you don't know who these people are and you don't know how long it's going to take for the sheriffs to respond. I can see why you'd want some guns for protection. That's one conversation.
+I had another conversation just a couple of months ago with a mom from Chicago -- actually, Evanston, Illinois -- whose son had been killed in a random shooting. And she said, you know, I hate it when people tell me that my son was shot because he was in the wrong place at the wrong time. He was in the right place. He was on his way to school. He wasn't in the wrong place. He was exactly where he was supposed to be.
+Now, both those things are true. And sometimes we're so divided between rural and urban, and folks whose hunting is part of their lives and folks whose only experience with guns is street crime. And the two sides just talk past one another. And more than anything, what I want to just emphasize is there are good people on both sides of this thing, but we have to be able to put ourselves in the other person's shoes. If you're a hunter, if you're a sportsman -- if you have a gun in your house for protection -- you've got to understand what it feels like for that mom whose son was randomly shot.
+And if you live in an urban area and you're worried about street crime, you've got to understand what it might be like if you grew out on a ranch and your dad had been taking you hunting all your life. And we had a couple of sportsmen in our conversation today, and I thought one of them said something very important. He said, all my experiences with guns have been positive, but I realize that for others, all their experiences about guns have been negative. Well, that's a start, right? If we start listening to each other, then we should be able to get something done that's constructive. We should be able to get that done. (Applause.)
+One last thing I’m going to mention is that during this conversation -- I hope you don't mind me quoting you, Joe. Joe Garcia, I thought, also made an important point, and that is that the opponents of some of these common-sense laws have ginned up fears among responsible gun owners that have nothing to do with what’s being proposed and nothing to do with the facts, but feeds into this suspicion about government.
+You hear some of these quotes: “I need a gun to protect myself from the government.” “We can't do background checks because the government is going to come take my guns away.”
+Well, the government is us. These officials are elected by you. (Applause.) They are elected by you. I am elected by you. I am constrained, as they are constrained, by a system that our Founders put in place. It’s a government of and by and for the people.
+And so, surely, we can have a debate that's not based on the notion somehow that your elected representatives are trying to do something to you other than potentially prevent another group of families from grieving the way the families of Aurora or Newtown or Columbine have grieved. We’ve got to get past some of the rhetoric that gets perpetuated that breaks down trust and is so over the top that it just shuts down all discussion. And it’s important for all of us when we hear that kind of talk to say, hold on a second. If there are any folks who are out there right now who are gun owners, and you’ve been hearing that somehow somebody is taking away your guns, get the facts. We’re not proposing a gun registration system, we’re proposing background checks for criminals. (Applause.)
+Don't just listen to what some advocates or folks who have an interest in this thing are saying. Look at the actual legislation. That's what happened here in Colorado. And hopefully, if we know the facts and we’re listening to each other, then we can actually move forward.
+And that’s what members of Congress need to hear from you. Right now, members of Congress are at home in their districts. Many of them are holding events where they can hear from their constituents. So I'm asking anyone out there who is listening today, find out where your member of Congress stands on these issues. If they're not part of the 90 percent of Americans who agree on background checks, then ask them why not. Why wouldn’t you want to make it more difficult for a dangerous criminal to get his or her hands on a gun? Why wouldn’t you want to close the loophole that allows too many criminals to buy a gun without even the simplest of background checks? Why on Earth wouldn’t you want to make it easier rather than harder for law enforcement to do their job?
+I know that some of the officers here today know what it's like to look into the eyes of a parent or a grandparent, a brother or a sister, or a spouse who has just lost a loved one to an act of violence. Some of those families, by the way, are here today. And as police officers, you know as well as anybody, there is no magic solution to prevent every bad thing from happening in the world. You still suit up, you put on your badge, put yourself at risk every single day. Every single day, you go to work and you try to do the best you can to protect the people you're sworn to protect and serve. Well, how can the rest of us as citizens do anything less?
+If there is just one step we can take to prevent more Americans from knowing the pain that some of the families who are here have known, don’t we have an obligation to try? Don’t we have an obligation to try? (Applause.) If these reforms keep one person from murdering dozens of innocent children or worshippers or moviegoers in a span of minutes, isn't it worth fighting for? (Applause.) I believe it is. That’s why I'm going to keep on working. I'm going to keep on giving it my best efforts. But I'm going to need your help.
+This is not easy. And I'll be blunt -- a lot of members of Congress, this is tough for them. Because those who are opposed to any form of legislation affecting guns, they're very well-organized and they're very well-financed. But it can be done if enough voices are heard.
+So I want to thank all the police officers who are here for giving their best efforts every single day. (Applause.) I want to thank Governor Hickenlooper for his outstanding leadership. (Applause.) I want to thank all the families who are here for your courage in being willing to take out of this tragedy something positive. I want to thank the people of Colorado for coming together in sensible ways. (Applause.) Let's see if we can get the whole country to do so.
+Thank you, Denver. God bless you. And God bless the United States of America. (Applause.)
+END 3:45 P.M. MDT
+]]>“The Healthy Lunchtime Challenge” Welcomes Children and Their Parents to Create
+ Healthy Lunch Recipes for an Invite to a Kids’ “State Dinner” at the White House
+
New York, NY (April 3, 2013) – With the overwhelming success of the inaugural Healthy Lunchtime Challenge & Kids' “State Dinner” in 2012, First Lady Michelle Obama is again teaming up with Epicurious, the U.S. Department of Education, and the Department of Agriculture to host a nationwide recipe challenge to promote healthy eating among America’s youth.
+“Last year’s Kids State dinner was one of my favorite events we’ve ever done for Let’s Move! because it perfectly captured how young people, parents, community leaders and businesses can come together for innovative, healthy solutions,” said First Lady Michelle Obama. “Last year’s young chefs impressed and inspired me with their creativity, and I can’t wait to welcome a whole new group to the White House this summer and taste their creations. So kids, let’s get cooking!”
+The second Healthy Lunchtime Challenge & Kids' “State Dinner” invites parents or guardians and their children, ages 8-12, to create and submit an original lunch recipe that is healthy, affordable, and tasty. In support of Let’s Move!, launched by the First Lady to solve the issue of childhood obesity, each recipe must adhere to the guidance that supports USDA’s MyPlate (at ChooseMyPlate.gov) to ensure that the criteria of a healthy meal are met. Entries must represent each of the food groups, either in one dish or as parts of a lunch meal, including fruits, vegetables, whole grains, lean proteins and low-fat dairy foods, with fruits and veggies making up roughly half the plate or recipe.
+All U.S. states and territories, including Washington, D.C., Puerto Rico, Guam, American Samoa, the U.S. Virgin Islands, and the Northern Mariana Islands, are invited to participate. Fifty-six children and their parent/guardian (one pair from each of the 50 states, plus the U.S. Territories, D.C., and Puerto Rico) will be flown to the nation’s capital where they will have the opportunity to attend a Kids’ “State Dinner” at the White House this summer, hosted by Mrs. Obama. A selection of the winning healthy recipes will be served.
+“In order to promote a healthier next generation of Americans, we need to encourage kids to make healthier choices now – which they can carry into adulthood,” said Agriculture Secretary Tom Vilsack. “USDA is thrilled to be part of the Healthy Lunchtime Challenge again this year because it inspires kids to use USDA’s MyPlate to take a hands-on approach to building healthier meal times.”
+“We know healthy kids are healthy students, and healthy students are better able to engage in the classroom and excel academically,” said U.S. Secretary of Education Arne Duncan. “If we can get our children to eat healthier and exercise more, that’s a recipe for success. Kids are the best judges of what looks and tastes good, so we’re challenging them to create lunches that all their peers will enjoy.”
+“We are thrilled to once again partner with Mrs. Obama, and to champion her Let’s Move! initiative, in an effort to raise awareness for the importance of healthy eating among kids,” said Tanya Steel, editor-in-chief of Epicurious. "Through ‘The Healthy Lunchtime Challenge,’ we will, for the second year, create a call to action for kids, highlighting the importance of healthy meals. This initiative will continue to make a positive impact on the way our children eat, and will reinforce that meals, especially school lunches, can be delicious and nutritious.”
+The winning recipes will be chosen by a panel of judges, including Tanya Steel, Let’s Move! Executive Director Sam Kass, USDA and U.S. Department of Education representatives, as well as a celebrity chef, to be named. At the conclusion of the Challenge, a free, downloadable and printable e-cookbook featuring the winning recipes, nutritional analysis, photos and drawings, will be available via LetsMove.gov, USDA.gov, Ed.gov and recipechallenge.epicurious.com.
+The White House Kids’ “State Dinner” is currently scheduled to take place in July or August 2013.
+Recipes can be submitted April 3 through May 12, online at recipechallenge.epicurious.com, or via mail at “The Healthy Lunchtime Challenge c/o Epicurious.com,” 1166 Avenue of the Americas, 15th Floor, New York, NY 10036. Winners will be notified at the end of June. For more information and contest rules visit recipechallenge.epicurious.com.
+]]>Tuesday, April 9 * White House – As part of their “In Performance at the White House” series, the President and First Lady will invite music legends and contemporary major artists to the White House for a celebration of Memphis Soul music. The program will include performances by Alabama Shakes, William Bell, Steve Cropper, Al Green, Ben Harper, Queen Latifah, Cyndi Lauper, Joshua Ledet, Sam Moore, Charlie Musselwhite, Mavis Staples and Justin Timberlake, with Booker T. Jones as music director and band leader. The President’s remarks will be pooled press and the entire event will be streamed live on www.whitehouse.gov/live starting at 6:55 PM ET. “In Performance at the White House: Memphis Soul” will be broadcast Tuesday, April 16 at 8 PM ET on PBS stations nationwide (check local listings). The program will also be broadcast at a later date via the American Forces Network to American service men and women and civilians at U.S. Department of Defense locations around the world.
+As she has done with previous White House music events, the First Lady will host a special daytime event for students. The First Lady will welcome 120 middle and high school students from across the country to take part in an interactive student workshop event: “Soulsville, USA: The History of Memphis Soul.” Beginning at 11:00 AM in the State Dining Room, Robert Santelli, Executive Director of The GRAMMY Museum in Los Angeles, will lead the students in an overview of the origins of Memphis Soul, discuss important artists from throughout its history, and explore the elements of soul and gospel that helped contribute to the genre’s unique sound. Featured performers from the evening event will share their experiences as well as answer student questions about the music and entertainment world. Students from 16 schools and organizations from the following ten communities will participate: Herndon, Virginia; Los Angeles and Oakland, California; Memphis, Tennessee; New York, New York; Sandy Spring, Maryland; Seminole, Tampa; Tarpon Springs, Florida; and Washington, D.C.
+The workshop, “Soulsville, USA: The History of Memphis Soul,” will stream live on www.whitehouse.gov/live. This event will be open press, but space is limited. Members of the media who wish to cover this event must RSVP to firstladypress@who.eop.gov by Friday, April 5, 2013 at 12:00 PM ET. Press who do not have a White House hard pass must include their social security number, date of birth, country of citizenship, current city/state of residence and gender.
+“In Performance at the White House: Memphis Soul” will be the tenth “In Performance at the White House” program hosted by the President and Mrs. Obama. Starting in February 2009, these events have honored the musical genius of Stevie Wonder, Sir Paul McCartney, Burt Bacharach and Hal David; celebrated Hispanic musical heritage during Hispanic Heritage Month; marked Black History Month with events featuring music from the Civil Rights Movement, Motown and the Blues; spotlighted Broadway and the unique spirit of the American musical; and explored the rich roots and resiliency of Country Music.
+]]>2:14 P.M. EDT
+PRESIDENT OBAMA: Well, it is a great pleasure for me to welcome my good friend, Prime Minister Lee, to the Oval Office. He and I have had interacted in a whole range of international forums, and not surprisingly, he has proven to be an outstanding partner for us on the international stage -- not surprising because Singapore and the United States have historically had an extraordinary relationship. Singapore is one of the most successful countries in the world.
+I think their progress and their development over the last several decades has been an example for many countries around the world. We have extremely close military cooperation. And I want to thank Singapore for all the facilities that they provide that allow us to maintain our effective Pacific presence.
+They are an outstanding economic partner. Over the last decade, since we signed our free trade agreement, we have seen a doubling of trade between our countries, and that creates jobs here in the United States as well as in Singapore. As a leader in ASEAN and the East Asia Summit, they’ve provided I think a steady vision of how countries in the Pacific region can cooperate effectively for the prosperity and security of all, and are strong promoters of rules of the road and international norms that the United States strongly supports.
+And so, across the board, we have very much appreciated the extraordinary relationship between our two countries. And personally, I can tell you that there are very few world leaders who I am more appreciative of in terms of their advice and counsel and thoughtful analysis than Prime Minister Lee.
+And as we continue the process that we called rebalancing when I first came into office, we’ve continued to seek out the advice and good counsel of Singapore in how to effect that in a way that creates not only strong security, but also increase prosperity for both the United States and the countries of the region.
+So I’m very thankful for Singapore and its partnership. I’m thankful for Prime Minister Lee for his outstanding work. I’m grateful for the people of Singapore. As many of you know, I spent some time in my youth in this part of the world and have a great fondness and affection for the people of Singapore. I’m extraordinarily pleased to see their great success and I’m looking forward to a very productive discussion about how we can continue to improve prospects for people not just in the Asia Pacific region but around the world.
+So thank you very much, Mr. Prime Minister.
+PRIME MINISTER LEE: Thank you, Mr. President. I’m very happy to be here in Washington during cherry blossom season and very honored to be calling on the President so early in his second term.
+We have very good relations between Singapore and the United States, grown in deep cooperation. We work together in education, research and development. We work together in economic areas and trade. We work together in counterterrorism and defense. And it’s a comprehensive relationship, and we look forward particularly in the next few weeks to welcoming the first littoral combat ship, which will be arriving in Singapore and we will be playing host to it for a few months.
+But more broadly, Singapore is very happy that the U.S. and the Obama administration has been putting greater emphasis on its relation to Asia; that it’s rebalancing towards Asia, and that it’s engaging Asia across many fronts -- not just security, but also economics, also cultural and educational. And Singapore would like to be of help in furthering this process in deepening the relationship.
+The TPP, the Trans-Pacific Partnership, is a very important part of it, and we’re working on that agenda now. There’s also work going on deepening ASEAN’s relations with the United States, which the President initiated when we last met in November back then.
+And there are other important bilateral relationships in Asia, including what is perhaps the most important bilateral relationship in the world, which is between the U.S. and China. And we are happy that the administration’s attention is focused on this, and Singapore will do our part to do what we can to help America engage the region constructively, productively, and in a way in which it fosters stability and prosperity for all the countries.
+So I’m very happy to be here, to be calling on this President, and I hope I’ll have the opportunity to invite him to come and visit Singapore before too long, and for me to reciprocate his wonderful hospitality.
+PRESIDENT OBAMA: Thank you very much, everybody.
+END
+ 2:20 P.M. EDT