top
(README.md)
# Activity

Activity is dependant on [QOR Admin](https://github.com/qor/admin). It provides [QOR Admin](https://github.com/qor/admin) with an activity tracking feature for any Resource.

Applying Activity to a Resource will add `Comment` and `Track` data/state changes within the [QOR Admin](https://github.com/qor/admin) interface.

[![GoDoc](https://godoc.org/github.com/qor/activity?status.svg)](https://godoc.org/github.com/qor/activity)

## Usage

```go
import "github.com/qor/admin"

func main() {
  Admin := admin.New(&qor.Config{DB: db})
  order := Admin.AddResource(&models.Order{})

  // Register Activity for Order resource
  activity.Register(order)
}
```

The above code snippet will add an activity tracking feature to the Order resource in a hypothetical project, which would look a bit like the screenshot below in [QOR Admin](https://github.com/qor/admin):

## License

Released under the [MIT License](http://opensource.org/licenses/MIT).

Imports 9 package(s)

  1. github.com/qor/qor
  2. github.com/qor/qor/resource
  3. github.com/qor/media/asset_manager
  4. github.com/qor/admin
  5. github.com/qor/qor/utils
  6. github.com/qor/validations
  7. github.com/qor/responder
  8. github.com/jinzhu/gorm
  9. github.com/qor/audited

Test imports 4 package(s)

  1. github.com/qor/l10n
  2. github.com/theplant/testingutils
  3. github.com/qor/qor/test/utils
  4. github.com/qor/roles