Skip to content

Commit 28a8fe2

Browse files
committed
remove archive course, carousal speed
1 parent b0cbfb4 commit 28a8fe2

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

spoken_auth/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class FossCategory(models.Model):
3838
status = models.BooleanField(max_length=2)
3939
created = models.DateTimeField(auto_now_add=True)
4040
updated = models.DateTimeField(auto_now=True)
41+
show_on_homepage = models.PositiveSmallIntegerField(default=0, help_text ='0:Display on home page, 1:Series, 2:Archived')
4142

4243
class Meta:
4344
db_table = 'creation_fosscategory'

static/website/templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ <h3 align="center">Answers</h3>
160160

161161
$carousel = $('.carousel').slick({
162162
lazyLoad: 'ondemand',
163-
dots: false,
163+
dots: true,
164164
touchMove: false,
165165
draggable: false,
166166
slidesToShow: 5,
167167
slidesToScroll: 4,
168-
speed: 2000,
168+
speed: 500,
169169
autoplay: true,
170170
autoplaySpeed: 2000,
171171
infinite: true,

website/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
User = get_user_model()
2424
categories = []
25-
trs = TutorialResources.objects.filter(Q(status=1) | Q(status=2), language__name='English')
25+
trs = TutorialResources.objects.filter(Q(status=1) | Q(status=2),tutorial_detail__foss__show_on_homepage__lt=2, language__name='English')
2626
trs = trs.values('tutorial_detail__foss__foss').order_by('tutorial_detail__foss__foss')
2727

2828
for tr in trs.values_list('tutorial_detail__foss__foss').distinct():

0 commit comments

Comments
 (0)