-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
872 additions
and
796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
public/bower_components/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import javax.inject.Inject | ||
|
||
import com.mohiva.play.htmlcompressor.HTMLCompressorFilter | ||
import com.mohiva.play.xmlcompressor.XMLCompressorFilter | ||
import play.api.http.HttpFilters | ||
import play.api.mvc.EssentialFilter | ||
|
||
/** | ||
* Filters for HTML Compressor | ||
* Created by ediaz on 11-10-15. | ||
*/ | ||
class Filters @Inject() (htmlCompressorFilter: HTMLCompressorFilter, xmlCompressorFilter: XMLCompressorFilter) | ||
extends HttpFilters { | ||
|
||
override def filters: Seq[EssentialFilter] = Seq( | ||
htmlCompressorFilter, | ||
xmlCompressorFilter | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
package controllers | ||
|
||
import javax.inject.Inject | ||
import jp.t2v.lab.play2.auth.OptionalAuthElement | ||
import models.{Guest, Visitor} | ||
import models.{Blogs, Guest, Visitor} | ||
import play.api.db.slick.DatabaseConfigProvider | ||
import play.api.i18n.{I18nSupport, MessagesApi} | ||
import play.api.mvc.Controller | ||
import services.BlogService | ||
import scala.concurrent.Future | ||
import scala.concurrent.ExecutionContext.Implicits.global | ||
|
||
object BlogsGuestController extends Controller with DBElement with OptionalAuthElement with AuthConfigImpl { | ||
class BlogsGuestController @Inject() (val messagesApi: MessagesApi, dbConfigProvider: DatabaseConfigProvider) extends Controller with OptionalAuthElement with AuthConfigImpl with I18nSupport { | ||
|
||
def index(pageNum:Int=0) = AsyncStack { implicit request => | ||
val user : Visitor = loggedIn.getOrElse(Guest) | ||
Future.successful(Ok(views.html.blogs_index("Blogs", BlogService.list(user, page = pageNum), user))) | ||
Blogs.listForVisitor(user, page=pageNum).map { page => | ||
Ok(views.html.blogs_index("Blogs", page, user)) | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.